Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-13T22:59:37.000Z (about 10 years ago)
- Last Synced: 2024-10-11T19:22:55.794Z (3 months ago)
- Language: JavaScript
- Homepage: https://github.com/ruanyl/diff-match-patch-node
- Size: 203 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
diff-match-patch
========
[![NPM version](https://badge.fury.io/js/diff-match-patch-node.svg)](http://badge.fury.io/js/diff-match-patch-node)
[![Build Status](https://travis-ci.org/ruanyl/diff-match-patch-node.svg?branch=master)](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' ] ]
```