🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

clean-html

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-html - npm Package Compare versions

Comparing version

to
1.2.3

cmd.js

6

package.json
{
"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'
```