A health check middleware for Express.js applications.
npm install --save @kunalnagarco/healthie
const express = require('express');
const app = express();
const { handleHealthCheck } = require('@kunalnagarco/healthie');
app.use(handleHealthCheck());
Visit /health
and you should see the following:
{
"uptime": 36.883064168, // process.uptime
"status": "OK"
}