1.0.2 • Published 6 years ago

node-status-health v1.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

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({});
	});