json-diff-patch-stream

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i json-diff-patch-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • johnelliott