wrap-json-stream
Wrap a duplex stream with JSONStream parse and stringify.
example
const json = through2 = const wrapped = wrappedwrapped
{"x":1,"y":2}
{"x":2,"y":4}
json(stream(s), [opts])
Options:
- fwd: array of events to forward from the inner stream to the outer
- inherit: array of properties to inherit
const inner = innername = 'my-stream' const outer = outerinner
install
With npm do:
npm install wrap-json-stream
license
MIT © Vincent Weevers