rtf-parse
A simplified RTF parser.
Installation
$ npm install --save rtf-parse
Usage examples
const rtfParse = require( 'rtf-parse' ),
path = require( 'path' );
rtfParse.parseFile( path.join( '_fixtures', 'rtfSimple.rtf' ) )
.then( doc => {
// Do anything you like with rtf.model.Document instance of your document.
} );
const rtfParse = require( 'rtf-parse' );
rtfParse.parseString( '{\\rtf1 foobar}' )
.then( doc => {
// Do anything you like with rtf.model.Document instance of your document.
} );
You can find more usage examples in examples directory.
Also you could also browse tests to see how the API is used.