Skip to content

mlewand/rtf-parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

66d9974 · Feb 26, 2017
Feb 2, 2017
Feb 6, 2017
Feb 6, 2017
Feb 25, 2017
Jan 29, 2017
Jan 29, 2017
Feb 4, 2017
Jan 29, 2017
Feb 26, 2017
Jan 29, 2017
Feb 26, 2017
Feb 26, 2017
Jan 31, 2017
Feb 26, 2017

Repository files navigation

rtf-parse

GitHub version Build status Build Status codecov Dependency Status GitHub issues GitHub closed issues

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.

Contribute

This is fully open source pet project, if you feel you're in a mood for a pull request, you're more than welcome to do so!

Getting In Touch

You can always ping me at Twitter @m_lewand.

License

MIT © Marek Lewandowski

About

A simplified RTF parser.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published