0.1.0 • Published 6 years ago

koa-health-report v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

CircleCI

Koa Custom Health Report Middleware

Installation:

const healthreport = require('koa-health-report');

The default path is /health:

app.use(healthreport());

With a custom path:

app.use(healthreport({ path: '/custompath' }));

With a custom report object (appended):

app.use(healthreport({ custom: {
  foo: 'bar',
  bin: () => 'baz',
} }));