https://github.com/plotdb/json0
bundle of ot-json0, json0-ot-diff and diff-match-patch for browser.
https://github.com/plotdb/json0
operational-transformation sharedb
Last synced: about 1 month ago
JSON representation
bundle of ot-json0, json0-ot-diff and diff-match-patch for browser.
- Host: GitHub
- URL: https://github.com/plotdb/json0
- Owner: plotdb
- Created: 2020-11-26T11:39:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T02:00:07.000Z (about 4 years ago)
- Last Synced: 2025-01-08T22:40:10.964Z (about 1 year ago)
- Topics: operational-transformation, sharedb
- Language: HTML
- Homepage:
- Size: 352 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# json0
bundle of `ot-json0`, `json0-ot-diff` and `diff-match-patch` for browser.
# Usage
include `dist/json0.min.js` and use it as:
/* diff 2 objects, return operational transformations */
json0.diff(objA, objB)
/* github:ottypes/json0 */
json0.type
/* apply ot with json0.type */
json0.type.apply(objC, ots);
for a module version, use `dist/require/json0.min.js`:
json0 = require("json0")
# Version
we lock `deep-equal` to version 1.0.1 to prevent `es-abstract` from being bundled together, which induces 30k+ file size.
# License
MIT