@apolitical/health

1.0.3 • Public • Published

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!

Package Sidebar

Install

npm i @apolitical/health

Weekly Downloads

2,638

Version

1.0.3

License

MIT

Unpacked Size

6.56 kB

Total Files

9

Last publish

Collaborators

  • npm-apolitical-styleguide