Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.2.2 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'
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc