https://github.com/roppa/koa-health-report
Koa health report (customisable) middleware
https://github.com/roppa/koa-health-report
health-check health-report healthcheck
Last synced: about 1 year ago
JSON representation
Koa health report (customisable) middleware
- Host: GitHub
- URL: https://github.com/roppa/koa-health-report
- Owner: roppa
- Created: 2018-05-10T11:08:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T22:32:30.000Z (over 3 years ago)
- Last Synced: 2025-02-14T18:36:29.187Z (over 1 year ago)
- Topics: health-check, health-report, healthcheck
- Language: JavaScript
- Size: 392 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://circleci.com/gh/roppa/koa-health-report)
## Koa Custom Health Report Middleware
Installation:
```javascript
const healthreport = require('koa-health-report');
```
The default path is `/health`:
```javascript
app.use(healthreport());
```
With a custom path:
```javascript
app.use(healthreport({ path: '/custompath' }));
```
With a custom report object (appended):
```javascript
app.use(healthreport({ custom: {
foo: 'bar',
bin: () => 'baz',
} }));
```