I completely rebuilt the jsdifflib utility for speed. Since my version does not require DOM access it at least 4.5 times faster, and it is also extended to highlight character differences in each line.
http://prettydiff.com/diffview.js
You can test this out with the online tool directly at http://prettydiff.com/
Answer from austincheney on Stack OverflowJavaScript based diff utility - Stack Overflow
The fastest object diff library in JavaScript
I created the fastest object and array diff library in JavaScript
javascript - Does nodejs have a working diff library or algorithm? - Stack Overflow
What is JSDiff?
Is JSDiff free to use?
Is my data safe when using JSDiff?
I completely rebuilt the jsdifflib utility for speed. Since my version does not require DOM access it at least 4.5 times faster, and it is also extended to highlight character differences in each line.
http://prettydiff.com/diffview.js
You can test this out with the online tool directly at http://prettydiff.com/
jsdifflib inline mode comparison, try tweaking the context size to display just the desired window of change you want. There's a demo here
» npm install diff
» npm install deep-object-diff
Maybe this will help you — jsdiff
I'm a fan of google diff match patch. You can try out an example here.
There are different cleanup option to tweak the level of commonality between the diffs. I don't like the semantic cleanup option as I find it's too aggressive, but the efficiency cleanup with a value of 10 works well for me.