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

2.0.0 • Public • Published

@diegoh/api-middleware-response-time

Build License: MIT Package Version

Koa middleware to set X-Response-Time header.

Usage

Example

const Koa = require('koa');
const responseTime = require('@diegoh/api-middleware-response-time');

const app = new Koa();
app.use(responseTime());

Development

  1. Create a new branch from master with a name relevant to the changes you're making. git branch -b my-new-feature-description
  2. Push the branch and open a Pull Request (PR).
  3. Request a code review.

Unit Tests

npm run test:unit

Coverage

npm run test:coverage

Lint

npm run lint or npm run lint:fix to automatically fix any linting issues.

Readme

Keywords

none

Package Sidebar

Install

npm i @diegoh/api-middleware-response-time

Weekly Downloads

4

Version

2.0.0

License

MIT

Unpacked Size

10.9 kB

Total Files

18

Last publish

Collaborators

  • diegoh