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

0.0.2 • Public • Published

koa-response-time

NPM version Coverage Status Dependencies Build Status license issues

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

Related

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @zcorky/koa-response-time

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    5.23 kB

    Total Files

    5

    Last publish

    Collaborators

    • uniquecolesmith