json-stringified-stream
v0.2.0
Published
Transform stream accepting a JSON string to parse and stringify with an optional delimiter.
Downloads
7
Maintainers
Readme
json-stringified-stream
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