2.0.0 • Published 4 years ago

@diegoh/api-middleware-response-time v2.0.0

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

@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.