JSON Patch Operational Transformations - resolves outdated JSON Patches (RFC6902) in real-time JSON collaboration
npm install json-patch-otsh
$ npm install json-patch-ot --save
`
Or
Install the component using Bower:
`sh
$ bower install json-patch-ot --save
`
Or download as ZIP.
Usage
`javascript
import JSONPatchOT from 'json-patch-ot';
var transformedPatch = JSONPatchOT.transform(givenPatch, againstAnotherPatch);
// or
var transformedPatch = JSONPatchOT.transform(givenPatch, againstArrayOfPatches);
`
Contributing
1. Fork it!
2. Create your feature branch: git checkout -b my-new-feature
3. Commit your changes: git commit -m 'Add some feature'
4. Push to the branch: git push origin my-new-feature`