HTML minifier based on existing NPM package (added NDCODE hooks)
An NDCODE project.
This is a minor modification to the NPM
html-minifier package version 3.5.21.
For the complete usage information, please see the original documentation at:
We gratefully acknowledge the authors for their MIT-licensing the package.
We've changed the
uglify-js dependency to
uglify-es, which adds support for
ES7 features like
We've also changed the
clean-css dependency to
behaves exactly the same but avoids loading the
clean-css dependency twice in
packages that depend on both
Suppose this package is imported as
let html_minifier = require('@ndcode/html-minifier'),
in addition to the usual
html_minifier.minify() function, we've also exported
the internal HTML parser constructor, so that parsers can be instanstiated as
with arguments as shown in the existing code. This is for our
The development version can be cloned, downloaded, or browsed with
All of our NPM packages are MIT licensed, please see LICENSE in the repository.
Feedback on NDCODE packages and/or code contributions are gratefully welcomed.
Contact: Nick Downing email@example.com