Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nv/google-diff-match-patch

A fork that diffs arrays rather than strings
https://github.com/nv/google-diff-match-patch

Last synced: about 2 months ago
JSON representation

A fork that diffs arrays rather than strings

Awesome Lists containing this project

README

        

# Diff, Match and Patch

This is the fork of [Diff, Match and Patch Library](http://code.google.com/p/google-diff-match-patch/) by Neil Fraser.

The original library works with strings. My fork works with arrays:

var dmp = new diff_match_patch()
dmp.diff_main(['a', 'b'], ['b'])
-> [
[DIFF_DELETE, ['a']],
[DIFF_EQUAL, ['b']]
]

## TODO
* make it work with both arrays and strings
* diff all objects