https://github.com/ruanyl/diff-match-patch-node
node wrap of google-diff-match-patch
https://github.com/ruanyl/diff-match-patch-node
Last synced: 3 months ago
JSON representation
node wrap of google-diff-match-patch
- Host: GitHub
- URL: https://github.com/ruanyl/diff-match-patch-node
- Owner: ruanyl
- License: mit
- Created: 2014-10-27T20:45:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-13T22:59:37.000Z (over 10 years ago)
- Last Synced: 2025-03-19T00:07:53.779Z (4 months ago)
- Language: JavaScript
- Homepage: https://github.com/ruanyl/diff-match-patch-node
- Size: 203 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
diff-match-patch
========
[](http://badge.fury.io/js/diff-match-patch-node)
[](https://travis-ci.org/ruanyl/diff-match-patch-node)node wrap of google-diff-match-patch
## Installation
This module is installed via npm:
``` bash
$ npm install diff-match-patch-node
```## Example Usage
``` js
var diffMatchPatch = require('diff-match-patch-node');diffMatchPatch().diff_main('test A B', 'test B B');
// => [ [ 0, 'test ' ], [ -1, 'A' ], [ 1, 'B' ], [ 0, ' B' ] ]
```