1.0.0 • Published 6 years ago

node-health-checker v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

node-health-checker

node-health-checker npm module used to print overall os status memory status as well as current process details.

Installation

npm i node-health-checker --save

Usage

In your node program:

var NODE_HEALTH_CHECKER = require('node-health-checker')

Calling

Calling of status function

	NODE_HEALTH_CHECKER.status().then(function(result) {
		response.send(result);
	}).catch(function(error) {
		response.send({});
	});

Calling of health function

	NODE_HEALTH_CHECKER.health().then(function(result) {
		response.send(result);
	}).catch(function(error) {
		response.send({});
	});