Skip to content

Commit 614c8a6

Browse files
author
Forbes Lindesay
committed
Initial code
0 parents  commit 614c8a6

File tree

7 files changed

+3295
-0
lines changed

7 files changed

+3295
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
lib-cov
2+
*.seed
3+
*.log
4+
*.csv
5+
*.dat
6+
*.out
7+
*.pid
8+
*.gz
9+
pids
10+
logs
11+
results
12+
npm-debug.log
13+
node_modules

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"

LICENSE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Copyright 2006 Google Inc.
2+
http://code.google.com/p/google-diff-match-patch/
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# diff-match-patch
2+
3+
npm package for https://code.google.com/p/google-diff-match-patch/
4+
5+
[![Build Status](https://travis-ci.org/ForbesLindesay/diff-match-patch.png?branch=master)](https://travis-ci.org/ForbesLindesay/diff-match-patch)
6+
[![Dependency Status](https://gemnasium.com/ForbesLindesay/diff-match-patch.png)](https://gemnasium.com/ForbesLindesay/diff-match-patch)
7+
[![NPM version](https://badge.fury.io/js/diff-match-patch.png)](http://badge.fury.io/js/diff-match-patch)
8+
9+
## Installation
10+
11+
npm install diff-match-patch
12+
13+
## API
14+
15+
https://code.google.com/p/google-diff-match-patch/wiki/API
16+
17+
```javascript
18+
var DiffMatchPatch = require('diff-match-patch');
19+
var dmp = new DiffMatchPatch();
20+
//use the methods that dmp has
21+
//see: https://code.google.com/p/google-diff-match-patch/wiki/API
22+
23+
//You can also use the following properties:
24+
25+
DiffMatchPatch.DIFF_DELETE = -1;
26+
DiffMatchPatch.DIFF_INSERT = 1;
27+
DiffMatchPatch.DIFF_EQUAL = 0;
28+
```
29+
30+
## License
31+
32+
http://www.apache.org/licenses/LICENSE-2.0

0 commit comments

Comments
 (0)