json-diff-patch-stream
v1.0.0
Published
send json diffs and patches with two transform streams
Downloads
2
Readme
JSON-diff-patch-stream
Two transform streams to send JSON diffs and parse JSON patches
installation
$ npm install --save json-diff-patch-stream
use
const createDiffSource = require('json-diff-patch-stream').createSource
const diffSource = createDiffSource() // Transform stream
process.stdin.pipe(diffSource).pipe(process.stdout)
get approximately this:
$ node myStream.js
{"a":2} # prints { a: [2] }