Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via pnpm

html-minifier 3.5.19

Highly configurable, well-tested, JavaScript-based HTML minifier.
Package summary
Share
2
issues
2
high severity
vulnerability
2
3
licenses
11
MIT
2
BSD-3-Clause
1
BSD-2-Clause
Package created
5 Aug 2011
Version published
13 Jul 2018
Maintainers
3
Total deps
14
Direct deps
7
License
MIT

Issues

2

2 high severity issues

high
Recommendation: None
via: html-minifier@3.5.19
Recommendation: None
via: html-minifier@3.5.19
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
11 Packages, Including:
camel-case@3.0.0
clean-css@4.1.11
commander@2.16.0
commander@2.19.0
he@1.1.1
html-minifier@3.5.19
lower-case@1.1.4
no-case@2.3.2
param-case@2.1.1
relateurl@0.2.7
upper-case@1.1.3

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
source-map@0.5.7
source-map@0.6.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
uglify-js@3.4.10
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

7
All Dependencies CSV
β“˜ This is a list of html-minifier 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
camel-case3.0.01.6 kBMIT
prod
clean-css4.1.1186.33 kBMIT
prod
commander2.16.017.74 kBMIT
prod
he1.1.133.39 kBMIT
prod
param-case2.1.11.93 kBMIT
prod
relateurl0.2.79.49 kBMIT
prod
uglify-js3.4.10138.33 kBBSD-2-Clause
prod

Visualizations

Frequently Asked Questions

What does html-minifier do?

HTML-minifier is a highly configurable, well-tested, JavaScript-based HTML minifier. It serves the primary function of reducing the size of your HTML files by eliminating unnecessary white spaces, comments, and other non-required elements. This reduction in size leads to faster load times and improved performance for your websites, which is beneficial for both user experience and SEO rankings.

How do you use html-minifier?

To use html-minifier, you can install it via npm for command line application or programmatic use. Here is an example of how to install it:

# for command line use
npm install html-minifier -g

# for programmatic use
npm install html-minifier

Also, you can clone it via Git:

git clone git://github.com/kangax/html-minifier.git
cd html-minifier
npm link .

You can activate html-minifier options when running the command. Here is an example of a sample command line:

html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true

For Node.js usage, see the following example:

var minify = require('html-minifier').minify;
var result = minify('<p title="blah" id="moo">foo</p>', {
  removeAttributeQuotes: true
});
// output: '<p title=blah id=moo>foo</p>'

Where are the html-minifier docs?

For detailed documentation on how to use html-minifier, options, testing results, and more, you can refer to its official GitHub page: https://github.com/kangax/html-minifier. Moreover, there is a corresponding blog post here which provides comprehensive information about the tool's working mechanism, option descriptions, and other aspects.