node-status-health
v1.0.2
Published
A npm package to show node process status and helath
Downloads
15
Maintainers
Readme
node-status-health
node-status-helath npm module used to print overall os status memory status as well as current process details.
Installation
npm i node-status-health --save
Usage
In your node program:
var NODE_STATUS_HEALTH = require('node-status-health')
Calling
Calling of status function
NODE_STATUS_HEALTH.status().then(function(result) {
response.send(result);
}).catch(function(error) {
response.send({});
});
Calling of health function
NODE_STATUS_HEALTH.health().then(function(result) {
response.send(result);
}).catch(function(error) {
response.send({});
});