diferente

1.0.1 • Public • Published

diferente

User-friendly virtual DOM diffing

Demo

Install

npm install diferente --save
bower install diferente --save

diferente(el, markup)

In contrast with el.innerHTML = markup, which wipes out the DOM when set, diferente allows you to easily swap out markup with an intelligent virtual-dom changeset diff patch.

diferente(el, '<new markup to diff/>');

Origins

The original diffhtml algorithm was designed and developed by tbranyen. I wanted something that didn't pollute the environment (his code assigned to Element.prototype.diffHTML), and so this module came into existance.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i diferente

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bevacqua