Express Health Middleware
This middleware adds four useful API's to monitor the express application.
Installation
$ npm install --save express-health-middleware
Usage
const app = ;const expressHealth = ; app; or app;
API's
API | Description |
---|---|
/about |
Returns application information. |
/health |
Returns 200 status code. |
/memory-usage |
Returns Memory usage of application. |
/uptime |
Returns application running time. |
API Sample Responses
/about
NOTE:
- Returns data from package.json.
- Without package.json '/about' will returns application default 404 page.
/health
OK
/memory-usage
/uptime
License
MIT