clean-html
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "clean-html", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "HTML cleaner and beautifier", | ||
"main": "index.js", | ||
"bin": "cmd.js", | ||
"dependencies": { | ||
"htmlparser2": "3.8.2" | ||
"htmlparser2": "3.8.2", | ||
"minimist": "1.1.1" | ||
}, | ||
@@ -9,0 +11,0 @@ "devDependencies": {}, |
@@ -170,1 +170,33 @@ ## HTML cleaner and beautifier | ||
Default: `null` | ||
## Global installation | ||
All of the options above are available from the command line when the package is installed globally: | ||
```bash | ||
$ clean-html crappy.html clean.html | ||
``` | ||
The first argument is the input file and the second is the output file. If no output file is specified, the output will be piped to STDOUT. | ||
Array options should be separated by commas. These are equivalent: | ||
```bash | ||
$ clean-html crappy.html clean.html --add-tags-to-remove b,i,u | ||
$ clean-html crappy.html clean.html --add-tags-to-remove 'b,i,u' | ||
``` | ||
Boolean options are parsed as true if they aren't followed by anything. These are equivalent: | ||
```bash | ||
$ clean-html crappy.html clean.html --remove-comments | ||
$ clean-html crappy.html clean.html --remove-comments true | ||
$ clean-html crappy.html clean.html --remove-comments 'true' | ||
``` | ||
So are these: | ||
```bash | ||
$ clean-html crappy.html clean.html --break-after-br false | ||
$ clean-html crappy.html clean.html --break-after-br 'false' | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16059
338
202
2
+ Addedminimist@1.1.1
+ Addedminimist@1.1.1(transitive)