@organicdesign/crdt-protocols
v0.1.1
Published
Protocols for encoding and decoding CRDT data.
Downloads
1
Readme
js-crdt-protocols
JS implementations of crdt-protocols.
Table of Contents
Install
npm i @organicdesign/crdt-protocols
Status
This package is currently in development (along with crdt-protocols) and is not recommended for use.
Usage
Import the protocol you want from this package:
import { <MESSAGE TYPE> } from "@organicdesign/crdt-protocols/<PROTOCOL>"
For example:
import { CounterData } from "@organicdesign/crdt-protocols/pn-counter"
Updating
To update the scripts to the new version of crdt-protocols:
npm run submodule
npm run build