https://github.com/geyang/operational-transform-reducers
No need for OT classes when you have reducers.
https://github.com/geyang/operational-transform-reducers
Last synced: 3 months ago
JSON representation
No need for OT classes when you have reducers.
- Host: GitHub
- URL: https://github.com/geyang/operational-transform-reducers
- Owner: geyang
- Created: 2016-07-30T17:38:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-30T18:01:45.000Z (almost 9 years ago)
- Last Synced: 2025-01-10T12:58:29.674Z (5 months ago)
- Language: JavaScript
- Size: 898 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# operational-transform-reducers
A OT type library implemented with plain json objects and pure reducers.## Usage
```shell
npm install --save operationa-transform-reducers
```and then in your code:
```javascript
import {Array, arrayInsert, arrayRemove} from 'operational-transform-reducers';// do NOT use the `new` keyword. Array is a pure function.
var list = Array(['some', 'list']);// and now list should look like:
// list = {
// nodes: {'key-0': 'some', 'key-1': 'list'},
// childKeys: ['key-0', 'key-1']
// }
```## Develop
1. First make your changes, then git commit. Use `serve-docs` to view live updated at [http://localhost:5000](http://localhost:5000)
2. run `build-docs`, `build-static-docs`, `gh-pages`
3. Then remember to push to master.