node-status-health

A npm package to show node process status and helath

Usage no npm install needed!

<script type="module">
  import nodeStatusHealth from 'https://cdn.skypack.dev/node-status-health';
</script>

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