diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/diff/README.md | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/diff/README.md')
-rw-r--r-- | node_modules/diff/README.md | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/node_modules/diff/README.md b/node_modules/diff/README.md index 03b5845d8..ec2363fe0 100644 --- a/node_modules/diff/README.md +++ b/node_modules/diff/README.md @@ -9,13 +9,13 @@ Based on the algorithm proposed in ["An O(ND) Difference Algorithm and its Variations" (Myers, 1986)](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927). ## Installation - - npm install diff - +```bash +npm install diff --save +``` or - - bower install jsdiff - +```bash +bower install jsdiff --save +``` ## API @@ -23,10 +23,16 @@ or Returns a list of change objects (See below). + Options + * `ignoreCase`: `true` to ignore casing difference. Defaults to `false`. + * `JsDiff.diffWords(oldStr, newStr[, options])` - diffs two blocks of text, comparing word by word, ignoring whitespace. Returns a list of change objects (See below). + Options + * `ignoreCase`: Same as in `diffChars`. + * `JsDiff.diffWordsWithSpace(oldStr, newStr[, options])` - diffs two blocks of text, comparing word by word, treating whitespace as significant. Returns a list of change objects (See below). |