dom-patch

2.1.7 • Public • Published

dom-patch

Build Status npm version

A library for patching DOMs. Binding to a document will return patches as they happen, which can be re-applied to another document.

This is useful when syncing DOMs, such as with web worker rendering.

Usage

var patch = require("dom-patch");
var apply = require("dom-patch/apply");
 
patch(document, function(patches){
 
    apply(otherDocument, patches);
 
});

License

MIT

/dom-patch/

    Package Sidebar

    Install

    npm i dom-patch

    Weekly Downloads

    122

    Version

    2.1.7

    License

    MIT

    Last publish

    Collaborators

    • chasen
    • matthewp