@gdn/envify-nconf
v1.3.2
Published
A ready to use loading to the process.env for nconf.
Downloads
1,113
Maintainers
Keywords
Readme
Envify nconf
A ready to use loading to the process.env for nconf.
Installation
npm install --save @gdn/envify-nconf
You can make use of this library by calling is as soon as possible in your project. Example:
import { load } from '@gdn/envify-nconf';
// Load config settings
load();
...
OR
require('@gdn/envify-nconf').load();
...
The .load function has 2 parameters:
- configFolder: string | Default: process.cwd() + /config
- branch: string | Optional | default: checks env vars for Travis and CircleCI branches
Hierarchy and settings
The following settings will be loaded in the following hierarchy:
- args
- env
- local.json
- {branch}.json
- default.json