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