Skip to content

Commit 400fc99

Browse files
authored
Merge pull request #2 from frankkienl/patch-2
Update README.md
2 parents 94a6f66 + 6c85ef3 commit 400fc99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ a JavaScript implementation of Google's [diff-match-patch](https://code.google.c
1010

1111
## Installation
1212

13-
npm install diff-match-patch
13+
npm install @2toad/diff-match-patch
1414

1515
## Usage
1616

1717
```javascript
18-
var DiffMatchPatch = require('diff-match-patch'); // or window.diff_match_patch
18+
var DiffMatchPatch = require('@2toad/diff-match-patch'); // or window.diff_match_patch
1919
var dmp = new DiffMatchPatch();
2020
var diff = dmp.diff_main('Good dog', 'Bad dog');
2121
```
@@ -100,4 +100,4 @@ Applies a list of patches to text1. The first element of the return value is the
100100

101101
The previously mentioned `Match_Distance` and `Match_Threshold` properties are used to evaluate patch application on text which does not match exactly. In addition, the `diff_match_patch.Patch_DeleteThreshold` property determines how closely the text within a major (~64 character) delete needs to match the expected text. If `Patch_DeleteThreshold` is closer to 0, then the deleted text must match the expected text more closely. If `Patch_DeleteThreshold` is closer to 1, then the deleted text may contain anything. In most use cases `Patch_DeleteThreshold` should just be set to the same value as `Match_Threshold`
102102

103-
API Reference: https://code.google.com/archive/p/google-diff-match-patch/wikis/API.wiki
103+
API Reference: https://code.google.com/archive/p/google-diff-match-patch/wikis/API.wiki

0 commit comments

Comments
 (0)