node-health-checker

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i node-health-checker

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • anurag-metacube