@kunalnagarco/healthie

4.2.9 • Public • Published

@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"
}

Package Sidebar

Install

npm i @kunalnagarco/healthie

Weekly Downloads

19

Version

4.2.9

License

MIT

Unpacked Size

5.65 kB

Total Files

6

Last publish

Collaborators

  • kunalnagar