@zcorky/koa-compress
v0.0.1
Published
compress for koa
Downloads
5
Readme
koa-compress
response time header for Koa.
Install
$ npm install @zcorky/koa-compress
Usage
// See more in test
import compress from '@zcorky/koa-compress';
import * as Koa from 'koa';
const app = new Koa();
app.use(compress());
app.use(ctx => {
ctx.body = 'hello, world!';
});
app.listen(8000, '0.0.0.0', () => {
console.log('koa server start at port: 8000');
});