1.3.2 • Published 12 months ago

@gdn/envify-nconf v1.3.2

Weekly downloads
184
License
MIT
Repository
github
Last release
12 months ago

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

1.3.2

12 months ago

1.3.1

1 year ago

1.3.0

3 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago