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

BohemiaInteractive/bi-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published