healthcheck-ping
🚑 Express middleware that exposes the health state.
This middleware can be used in any express application to provide a simple health check endpoint.
The default endpoint is "_health
" but you can provide a different endpoint name if you want.
The endpoint returns a static json response:
Installation
$ npm install healthcheck-ping --save
Usage
var createHealthcheckMiddleware = ; var server = ; server; // mounted as /_health
If you want the healthcheck to be available on a custom endpoint you can do so:
server;