Skip to content

kunalnagarco/healthie

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@kunalnagarco/healthie

codecov npm bundlephobia

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