Skip to content

Commit ec27713

Browse files
committed
Update README
1 parent 8f3c3b6 commit ec27713

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ var html1 = fs.readFileSync('1.html', 'utf-8'),
8484
var options = {
8585
ignoreHtmlAttrs: [],
8686
compareHtmlAttrsAsJSON: [],
87-
verbose: true,
8887
ignoreWhitespace: true,
8988
bem: false
9089
}
@@ -106,9 +105,7 @@ where ```options``` is the ```Object```:
106105

107106
* ```compareHtmlAttrsAsJSON: [ Array ]``` - sets what respective attributes' content will be compared as ```JSONs```, not as ```Strings```
108107

109-
* ```verbose: Boolean``` - see [here](https://github.com/tautologistics/node-htmlparser#option-verbose)
110-
111-
* ```ignoreWhitespace: Boolean``` - see [here](https://github.com/tautologistics/node-htmlparser#option-ignorewhitespace)
108+
* ```ignoreWhitespace: Boolean``` - if is set ```true```, ```html-differ``` will consider all groups of ```spaces```, ```new lines```, ```tabs``` as one ```space```
112109

113110
* ```bem: Boolean``` - predefined options for BEM
114111

@@ -119,10 +116,6 @@ Options for BEM are predefined:
119116

120117
* ```compareHtmlAttrsAsJSON: ['data-bem', 'onclick', 'ondblclick']```
121118

122-
* ```verbose: true```
123-
124-
* ```ignoreWhitespace: true```
125-
126119
* ```charsAroundDiff: 40```
127120

128121

@@ -139,7 +132,7 @@ Options:
139132
-h, --help : Help
140133
-v, --version : Shows the version number
141134
--config=CONFIG : Path to configuration JSON-file
142-
--chars-around-diff=CHARSAROUNDDIFF : The number of characters around the diff
135+
--chars-around-diff=CHARSAROUNDDIFF : The number of characters around the diff (default: 40)
143136

144137
Arguments:
145138
PATH1 : Path to the 1-st html-file (required)
@@ -162,7 +155,6 @@ Study the following ```config.json```:
162155
{
163156
"ignoreHtmlAttrs": [],
164157
"compareHtmlAttrsAsJSON": [],
165-
"verbose": true,
166158
"ignoreWhitespace": true,
167159
"bem": false
168160
}

0 commit comments

Comments
 (0)