@koex/response-time
v0.0.2
Published
response time for koa
Downloads
3
Readme
response-time
response time for koa extend.
Install
$ npm install @koex/response-time
Usage
// See more in test
import * as path from 'path';
import responeTime from '@koex/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');
});