@apolitical/health
v1.0.4
Published
Node.js module to expose Apolitical's APIs health checks
Downloads
6,129
Maintainers
Readme
Apolitical Health
Node.js module to expose Apolitical's APIs health checks
Requirements
Requires the following to run:
Installation
Install with yarn
:
yarn add apolitical-health
Usage
The @apolitical/health
module is meant to be used from backends (server-side), no matter is the server is hosting an API or UI.
First of all, include apolitical-health
module:
const { checkHealth } = require('apolitical-health');
The recommended way to use checkHealth
function is:
await checkHealth('people-api');
The first argument is the name of the API you want to check the health status.
And that is it!