0.1.2 • Published 4 years ago

trevi v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Trevi

A Typescript based parser for the screenplay format Fountain. It is directly inspired by and (largly) copied from Fountain.js by mattdaly.

Installation

npm install trevi --save
# or
yarn add trevi

Usage

import Trevi from "trevi"

const trevi = new Trevi(fountainString)

Blocks

Each section in the Fountain string is parsed into blocks assigned with a type (e.g. ACTION, CHARACTER, DIALOGUE, etc).

const blocks = trevi.blocks

Scenes

A scene consists of a slugline (scene heading) and the following blocks until the next slugline.

const scenes = trevi.scenes
0.1.2

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago