Skip to content

koexjs/response-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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