screenplay-js
Version:
A modern Typescript, Foutain screenplay parser. Convert Final Draft (.fdx) files to Fountain, and then parse Fountain markdown to HTML.
20 lines (19 loc) • 567 B
TypeScript
declare class ScriptTokenizer {
/**
* Cleans the script text to allow the parser to break
* the script into correct tokens, pages, etc.
*
* @param { String } script
* @returns { String }
*/
clean(script: string): string;
/**
* Return an array of token objects breaking the screenplay into type, text, etc. tokens.
*
* @param { String } script - Text of the screenplay
* @returns { Array<any> }
*/
tokenize(script: string): any[];
}
declare const tokenizer: ScriptTokenizer;
export { tokenizer };