@gdn/envify-nconf

A ready to use loading to the process.env for nconf.

Stats

StarsIssuesVersionUpdatedCreatedSize
@gdn/envify-nconf
011.2.13 months ago3 years agoMinified + gzip package size for @gdn/envify-nconf in KB

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:

  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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.