1.0.3 • Published 9 years ago

mini-html v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

miniHTML

A very simple HTML minifier. It will almost definitely break your site if you use PRE or CODE or TEXTAREA with formatting defined by line breaks and tabs etc. Otherwise it will aggressively shrink your HTML.

Usage

Import the node module:

`npm install mini-html`

Minify a HTML file:

var miniHTML = require("mini-html");
var minimized = miniHTML("<html> \n\t<head> \n\t<.......\n\n\n\n\n\t\t\t\t\t\t\t\t\t<body>..."); 
console.log(minimized); // <html><head><..........

Minify a HTML file:

var minimized = miniHTML(null, __dirname + "/index.html");

Minify a HTML file and save it

miniHTML(null, __dirname + "/index.html", true);
1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago