html-minify-stream

2.0.0 • Public • Published

html-minify-stream

minify html in a stream using html-minifier.

npm travis standard

Install

npm install html-minify-stream

Usage

var htmlMinifyStream = require('html-minify-stream')
 
fs.createReadStream('index.html')
  .pipe(htmlMinifyStream({
    collapseWhitespace: true,
    removeOptionalTags: true
  }))
  .pipe(fs.createWriteStream('dist/index.html'))

API

htmlMinifyStream(?options)

Create a new minify stream. Write an html document to it. options is an options object for html-minifier.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    22
  • 1.0.0
    0

Package Sidebar

Install

npm i html-minify-stream

Weekly Downloads

12

Version

2.0.0

License

MIT

Unpacked Size

4.58 kB

Total Files

7

Last publish

Collaborators

  • goto-bus-stop