0.0.2 • Published 5 years ago

@koex/response-time v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

response-time

NPM version Coverage Status Dependencies Build Status license issues

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');
});

Related