1.0.0 • Published 8 years ago

json-diff-patch-stream v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

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] }