https://github.com/donejs/done-mutation
Encode MutationRecords so that can be patched on another document
https://github.com/donejs/done-mutation
Last synced: about 1 month ago
JSON representation
Encode MutationRecords so that can be patched on another document
- Host: GitHub
- URL: https://github.com/donejs/done-mutation
- Owner: donejs
- License: mit
- Created: 2018-07-24T16:12:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T14:11:46.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T14:52:15.757Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 88.9 KB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# done-mutation
[](https://github.com/donejs/done-mutation/blob/master/LICENSE)
[](https://www.npmjs.com/package/done-mutation)
[](https://travis-ci.org/donejs/done-mutation)Utilties for encoding, decoding, and patching MutationRecords.
## Usage
### ES6 use
With StealJS, you can import this module directly in a template that is autorendered:
```js
import plugin from 'done-mutation';
```### CommonJS use
Use `require` to load `done-mutation` and everything else
needed to create a template that uses `done-mutation`:```js
var plugin = require("done-mutation");
```### Standalone use
Load the `global` version of the plugin:
```html
```