npm install htmlminA simple html minifier.
idea and html parser from https://github.com/kangax/html-minifier
``bash`
npm -g install htmlmin
`bash`
npm -g install mocha
mocha
The module exports the htmlmin function, so you can use it with :
`javascript`
var htmlmin = require('htmlmin');
The function htmlmin takes two arguments :
* input : the html content you want to minimize.
* options : minimize options.
* cssmin: true, minifier inline css
* jsmin: true, minifier inline javascript
* caseSensitive: true
* removeComments: true, remove comment, if you want keep comment, give a '!' at the beigin of your comment
* removeIgnored: false, remove tags not recognize
* removeOptionalTags: false, some tag can without end tag, remove these end tags
* collapseWhitespace: false,
Example :
`javascript
var htmlmin = require('htmlmin');
var html = '
xHellobilly
xxxx
MIT