Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T22:32:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-05T10:57:50.295Z (3 months 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
[![CircleCI](https://circleci.com/gh/roppa/koa-health-report.svg?style=svg)](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',
} }));
```