UNPKG

ass-stringify

Version:

Stringify ass-parser parse tree to plain SSA/ASS subtitle format

38 lines (22 loc) 940 B
[![npm](https://nodei.co/npm/ass-stringify.png)](https://nodei.co/npm/ass-stringify/) # ass-stringify [![Build Status][travis-badge]][travis] [![Dependency Status][david-badge]][david] Stringify [ass-parser](https://www.npmjs.com/packages/ass-parser) parse tree to plain SSA/ASS subtitle format. [travis]: https://travis-ci.org/eush77/ass-stringify [travis-badge]: https://travis-ci.org/eush77/ass-stringify.svg [david]: https://david-dm.org/eush77/ass-stringify [david-badge]: https://david-dm.org/eush77/ass-stringify.png ## API ### `assStringify(ass)` Returns a text string. See `test/sample.ass` for an example. ## References - [Wikipedia page](http://en.wikipedia.org/wiki/SubStation_Alpha) - [format specification](http://www.perlfu.co.uk/projects/asa/ass-specs.doc) ## Related - [ass-parser](https://www.npmjs.com/packages/ass-parser) - SSA/ASS parser. ## Install ```shell npm install ass-stringify ``` ## License MIT