Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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' ] ]
```