$ npm install pull-json-doublelinestream json stringify and parser into double newline delimited json. double newline delimiting means you can use indented json as the stream format, which is more human readable.
var pullJson = require('pull-json-doubleline')
pull(
source,
pullJson.stringify(),
pullJson.parse(),
sink
)
pullJson = require('pull-json-doubleline')pullJson.stringify() => throughstringify a stream of objects into double newline delimited json strings.
pullJson.parse() => throughtransform a stream of double newline delimited json strings into objects.
pullJson(source) => decodedSourcedecode a source stream of json buffers, return a source stream of objects.
pullJson(sink) => encodedSinkencode a sink stream for json buffers, return a sink stream for objects.
pullJson(objectDuplex) => serializedDuplexencode/decode around a duplex stream of json buffers, return a stream that can be piped to a io steam.
MIT