https://github.com/jstransformers/jstransformer-html-minifier
HTMLMinifier support for JSTransformers.
https://github.com/jstransformers/jstransformer-html-minifier
Last synced: 8 months ago
JSON representation
HTMLMinifier support for JSTransformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-html-minifier
- Owner: jstransformers
- License: mit
- Created: 2015-06-03T19:37:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T02:32:38.000Z (about 6 years ago)
- Last Synced: 2025-02-22T05:18:00.685Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-html-minifier
- Size: 56.6 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-html-minifier
[HTMLMinifier](https://github.com/kangax/html-minifier) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-html-minifier)
[](https://codecov.io/gh/jstransformers/jstransformer-html-minifier)
[](http://david-dm.org/jstransformers/jstransformer-html-minifier)
[](https://www.npmjs.org/package/jstransformer-html-minifier)
## Installation
npm install jstransformer-html-minifier
## API
```js
var htmlmin = require('jstransformer')(require('jstransformer-html-minifier'))
htmlmin.render('
html-minifier
', {
removeAttributeQuotes: true
}).body
//=> 'html-minifier
'
```
## License
MIT