html-minifier

minify HTML responses like some crazy guy

  • Owner: koajs/html-minifier
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Koa HTML Minifier

Middleware that minifies your HTML responses using html-minifier.
It uses html-minifier's default options which are all turned off by default,
so you have to set the options otherwise it's not going to do anything.

API

// do compression stuff first
app.use(require('koa-compress')());

// then use this minifier
app.use(require('koa-html-minifier')({
  collapseWhitespace: true
}));

Options

See: https://github.com/kangax/html-minifier#options-quick-reference

Main metrics

Overview
Name With Ownerkoajs/html-minifier
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2014-06-13 08:01:34
Pushed At2023-04-28 16:57:07
Last Commit At2022-12-07 16:10:01
Release Count5
Last Release Name3.0.0 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count32
Watchers Count8
Fork Count6
Commits Count90
Has Issues Enabled
Issues Count4
Issue Open Count0
Pull Requests Count46
Pull Requests Open Count3
Pull Requests Close Count23
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private