https://github.com/gorillab/health
The simplest health check middleware for express app
https://github.com/gorillab/health
Last synced: over 1 year ago
JSON representation
The simplest health check middleware for express app
- Host: GitHub
- URL: https://github.com/gorillab/health
- Owner: gorillab
- License: mit
- Created: 2017-08-24T16:18:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T16:17:25.000Z (over 8 years ago)
- Last Synced: 2024-04-27T04:20:58.329Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@gorillab/health
- Size: 38.1 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# health
[](https://travis-ci.org/gorillab/health)
[](https://github.com/gorillab/health)
[](https://www.npmjs.com/package/@gorillab/health)
[](https://www.npmjs.com/package/@gorillab/health)
The simplest health check middleware for express app
### installation
```bash
yarn add @gorillab/health
```
or using `npm`
```bash
npm install --save @gorillab/health
```
### usage
```javascript
import Express from 'express';
import Health from '@gorillab/health';
const app = Express();
app.use(Health());
app.listen(9000);
```
The endpoint is exposed as `http://localhost:9000/health`. Done!!!