0.2.0 • Published 9 years ago

json-stringified-stream v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

json-stringified-stream

Build Status NPM version NPM downloads LICENSE

Transform stream accepting a JSON string to parse and stringify with an optional delimiter.

 % npm install json-stringified-stream

Usage Example

var stringify = require('./index');
var transform = stringify("\n");
process.stdin.pipe(transform).pipe(process.stdout);

Running the examples

output package.json contents on a single line with a trailing newline.

 % cat package.json | node examples/with-transform-stream.js

output package.json contents as it appears in package.json (i.e. no transform).

 % cat package.json | node examples/no-transform-stream.js

Inspiration

License

MIT