Skip to content

includable/express-middleware-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

middleware-health

This package adds a /health endpoint that can be used for status checks and lists some request metrics:

{
   "status": 200,
   "friendlyName": "OK",
   "environment": "production",
   "uptime": 80374,
   "requests": 208,
   "responseTime": 0.001
}

Installation

npm i @includable/middleware-health

Usage

const express = require('express')
const health = require('@includable/middleware-health')

app.use(health())

app.listen(process.env.PORT || 3000, () => console.log(`Example app running.`))

About

Health endpoint and metrics middleware.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published