@gdn/envify-nconf
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

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:

  1. configFolder: string | Default: process.cwd() + /config
  2. 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:

  1. args
  2. env
  3. local.json
  4. {branch}.json
  5. default.json

Readme

Keywords

none

Package Sidebar

Install

npm i @gdn/envify-nconf

Weekly Downloads

384

Version

1.3.0

License

MIT

Unpacked Size

12.7 kB

Total Files

17

Last publish

Collaborators

  • usfarag
  • andreamarchioroguidion
  • eagleman
  • yigit-guidion
  • arisarsen
  • fonseppink
  • guidion-bot
  • victor.sheyanov