Skip to content

kunalnagarco/healthie

Repository files navigation

@kunalnagarco/healthie

npm

A health check middleware for Express.js applications.

Installation

npm install --save @kunalnagarco/healthie

Usage

const express = require('express');
const app = express();
const { handleHealthCheck } = require('@kunalnagarco/healthie');

app.use(handleHealthCheck());

Result

Visit /health and you should see the following:

{
  "uptime": 36.883064168, // process.uptime
  "status": "OK"
}