From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/diff/README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'node_modules/diff/README.md') 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). -- cgit v1.2.3