@bhavingajjar/html-minify

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @bhavingajjar/html-minify

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

5.77 kB

Total Files

6

Last publish

Collaborators

  • bhavingajjar