1.0.0 • Published 2 months ago

@bhavingajjar/html-minify v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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);