%fountain2json(1) | version 1.0.2 4f464da % R. S. Doiel % 2024-07-09
fountain2json
fountain2json [OPTIONS]
fountain2json is a command line program that reads an fountain document and returns a JSON representation of it.
-help : display help
-license : display license
-version : display version
-i : read from filename
-o : write to filename
-newline : add a trailing newline
-width : set the width of the text
-pretty : pretty print the output
Render screenplay.fountain as screenplay.json.
fountain2json -i screenplay.fountain -o screenplay.json
Or alternatively
cat screenplay.fountain | fountain2json > screenplay.json