Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (14 loc) · 767 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 767 Bytes

Build Status

Configuration plugin for bi-service
Loads an application config file from a fs path which defaults to <project_root>/config/config.js.

Example use (bi-service is responsible for config initialization):

    const config = require('bi-config');
    config.initialize();
    //...stuff
    var listenPort = config.get("path:to:nested:option");

The config file can be also in valid json format given that you provide the file path to the bi-service application:

project-root> ./node_modules/.bin/bi-service run --config ./config/config.json