Home

Awesome

koa-timer

time your middleware

img

Install

npm install koa-timer

Example

See the example.

API

timer = Timer(options)

Initialize a timer with the following options:

Then to instrument the middleware, you do the following:

app.use(timer(middleware()))

License

MIT