done-mutation

Encodes MutationRecords so they can be patched on other documents

Usage no npm install needed!

<script type="module">
  import doneMutation from 'https://cdn.skypack.dev/done-mutation';
</script>

README

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>