json-patch-ot

JSON Patch Operational Transformations - resolves outdated JSON Patches (RFC6902) in real-time JSON collaboration

Usage no npm install needed!

<script type="module">
  import jsonPatchOt from 'https://cdn.skypack.dev/json-patch-ot';
</script>

README

JSON Patch OT

Resolves outdated JSON Patches (RFC6902) in real-time JSON collaboration

Build Status

Set of transformations for JSON Patch Operational Transformations

Demo

Full flow visualization

Separated demo will be provided soon.

Install

Install the component using NPM

$ npm install json-patch-ot --save

Or

Install the component using Bower:

$ bower install json-patch-ot --save

Or download as ZIP.

Usage

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
  5. Submit a pull request :D

History

For detailed changelog, check Releases.

License

MIT

See also