An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# done-mutation

[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/donejs/done-mutation/blob/master/LICENSE)
[![npm version](https://badge.fury.io/js/done-mutation.svg)](https://www.npmjs.com/package/done-mutation)
[![Build Status](https://travis-ci.org/donejs/done-mutation.svg?branch=master)](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

```