Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

flow-stringify

Thin wrapper for JSONStream stringify.

Installation

$ npm install flow-stringify

Examples

varsStream=require('flow-stringify');// Create a new stream, passing along an optional error handler:varstream=sStream().stream(onError);// Setup the pipeline:stream.pipe(process.stdout);// Write data to the stream:stream.write({'x': 0,'y': 0});stream.end();// Error handler:functiononError(error){if(error){console.error(error.stack);thrownewError('Error!!!');}}

Tests

Unit tests use the Mocha test framework with Chai assertions.

Assuming you have installed Mocha, execute the following command in the top-level application directory to run the tests:

$ mocha

All new feature development should have corresponding unit tests to validate correct functionality.

License

MIT license.


Copyright

Copyright © 2014. Athan Reines.

About

Tiny wrapper around JSON stream stringify.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages