HTML Diffing in JavaScript (CoffeeScript)
npm install htmldiff
htmldiff.js is a CoffeeScript port of https://github.com/myobie/htmldiff
(This one has a few more tests.)
This is diffing that understands HTML. Best suited for cases when you
want to show a diff of user-generated HTML (like from a wysiwyg editor).
You use it like this:
``coffeescript
diff = require 'htmldiff.js'
console.log diff '
this is some text
', 'this is some more text
'
And you get:`html
this is some more text
`Licensed under the MIT License. See the
LICENSE` file for details.