Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nv/google-diff-match-patch
- Owner: NV
- Created: 2011-02-13T23:01:43.000Z (almost 14 years ago)
- Default Branch: gh-pages
- Last Pushed: 2011-02-13T23:01:59.000Z (almost 14 years ago)
- Last Synced: 2024-04-15T13:56:34.011Z (8 months ago)
- Language: JavaScript
- Homepage: http://code.google.com/p/google-diff-match-patch
- Size: 121 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mdown
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