Home

Awesome

jstransformer-html-minifier

HTMLMinifier support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-html-minifier

API

var htmlmin = require('jstransformer')(require('jstransformer-html-minifier'))

htmlmin.render('<p title="blah" id="moo">html-minifier</p>', {
  removeAttributeQuotes: true
}).body
//=> '<p title=blah id=moo>html-minifier</p>'

License

MIT