@koex/response-time
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

/@koex/response-time/

    Package Sidebar

    Install

    npm i @koex/response-time

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    5.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • uniquecolesmith