Giter VIP home page Giter VIP logo

Comments (3)

jonnygreenwald avatar jonnygreenwald commented on May 30, 2024 1

Hi @pjebs,

Just letting you know that I've renamed Fountain.ts to fountain-js.

You can now find the NPM package at https://www.npmjs.com/package/fountain-js.

Install:

npm install fountain-js

Note the import statement is now different too:

import { Fountain } from 'fountain-js';

let fountain = new Fountain();

from fountain-js.

jonnygreenwald avatar jonnygreenwald commented on May 30, 2024

Appreciate the question and your interest in this repo. I forked mattdaly/Fountain.js a couple of years ago and essentially added typing as well as refactored a few older common JS styles to take advantage of some of the newer methodologies of ES2016. This was mostly a project meant to familiarize myself with Typescript and get some practice typing an older package, which to my knowledge isn't maintained much any more.

Overall, it is at its core exactly the same. The regex's for tokenizing all mirror Matt's original package. I believe Matt's original package did not fully implement all of Fountain to spec so therefore nor does mine.

Is this more robust in terms of interpreting or less error prone?

To be honest, my assumption is it is no less error prone than his and I have to assume it is also not much of an improvement over the original either in terms of lexing robustness given it uses the same regex.

After working with this package, I actually decided to begin working on my own screenwriting markdown specification and am in the middle of currently writing the library for it. I hope to eventually implement Fountain as well so that those interested may continue supporting Fountain since I think the concept is still a great one given I'm trying to write a spec of my own.

Anyway, this is just background context mostly as that library is still a ways off, but also to note that I don't have a lot of plans to improve or update this package beyond ensuring its working for those who want to use it and fixing obvious issues they find like #8 .

That being said, I am always open to modifying this library to make it better and am happy to look over any PR or improvement those interested may want to contribute since my own library could benefit from an improved Fountain regex too.

from fountain-js.

pjebs avatar pjebs commented on May 30, 2024

Awesome work!

from fountain-js.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.