Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
/ fountain-js Public archive

A Node Module for parsing Fountain scripts

Notifications You must be signed in to change notification settings

andrewfulrich/fountain-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fountain

A JavaScript parser for Fountain formatted scripts that has no dependencies

Install

include sections.js, then tokenizer.js, then parser.js in your html

Use

// Give it a callback
parser.parse(string, function (output) {
  // output.title;
  // output.credit;
  // output.authors;
  // output.source;
  // output.draft_date;
  // output.date;
  // output.contact;
  // output.copyright;
  
  // output.scenes;
  
  // output.title_page_html;
  // output.script_html;
});

// Get the output directly
var output = fountain.parse(string);

About

A Node Module for parsing Fountain scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published