3.0.0 • Published 2 years ago

@stratech/node-get-config v3.0.0

Weekly downloads
4
License
UNLICENSED
Repository
github
Last release
2 years ago

module-node-get-config

StraTech Configuration fetcher module for NodeJS.

Usage

  1. Require this module in your NodeJS service to fetch its configuration from the configuration service over NATS, based it's app_name.

Note that the configuration service will need to be set up to support your service prior to using this module.

  1. Invoke the startup function to fetch the config for your service.

Example:

const get_config = require('@stratech/node-get-config');
var config = await get_config.startup();

Note that the startup function resolves or rejects a promise, so you will need to use async/await (with try/catch), or .then().catch().

3.0.0

2 years ago

2.1.1

5 years ago

2.0.9

5 years ago

2.1.0

5 years ago

2.0.8

5 years ago