@bhavingajjar/html-minify
v1.0.0
Published
A Node.js package for minifying HTML strings, removing unnecessary whitespace, comments, and other optimizations.
Downloads
1
Maintainers
Readme
html-minify
A Node.js package for minifying HTML strings, removing unnecessary whitespace, comments, and other optimizations.
Installation
You can install html-minify
using npm:
npm install @bhavingajjar/html-minify
const HTMLMinifier = require('node-html-minifier');
const minifier = new HTMLMinifier();
const minifiedHTML = minifier.htmlMinify('<html><body> <p>Hello World!</p> </body></html>');
console.log(minifiedHTML);