The simplest health check middleware for express app
yarn add @gorillab/health
or using npm
npm install --save @gorillab/health
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!!!