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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.780latest
2.0.0-alpha.20alpha

Version History

VersionDownloads (Last 7 Days)Published
2.1.780
2.2.00
2.1.60
2.1.50
2.1.40
2.1.30
2.1.20
2.1.10
2.1.00
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00
2.0.0-alpha.30
2.0.0-alpha.20
2.0.0-alpha.10
2.0.0-alpha.00
1.0.40
1.0.31
1.0.20
1.0.10
1.0.02
0.3.90
0.3.70
0.3.60
0.3.51
0.3.30
0.3.20
0.3.11
0.3.01
0.2.00
0.1.02

Package Sidebar

Install

npm i dom-patch

Weekly Downloads

88

Version

2.1.7

License

MIT

Last publish

Collaborators

  • chasen
  • matthewp