Skip to content

Encode MutationRecords so that can be patched on another document

License

Notifications You must be signed in to change notification settings

donejs/done-mutation

Repository files navigation

done-mutation

License: MIT npm version Build Status

Utilties for encoding, decoding, and patching MutationRecords.

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

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:

var plugin = require("done-mutation");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/done-mutation/dist/global/done-mutation.js'></script>