htmldiff
HTML Diffing in JavaScript (CoffeeScript)
Last updated 8 years ago .
MIT (Expat) · Repository · Original npm · Tarball · package.json
$ cnpm install htmldiff 
SYNC missed versions from official npm registry.

htmldiff.js

HTML Diffing in JavaScript (ok, CoffeeScript actually.)

Build Status

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:


  diff = require 'htmldiff.js'
  console.log diff '<p>this is some text</p>', '<p>this is some more text</p>'

And you get:

<p>this is some <ins>more </ins>text</p>

Licensed under the MIT License. See the LICENSE file for details.

Current Tags

  • 0.0.4                                ...           latest (8 years ago)

4 Versions

  • 0.0.4                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 5
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |