1.3.0 • Published 2 years ago

@gdn/envify-nconf v1.3.0

Weekly downloads
184
License
MIT
Repository
github
Last release
2 years 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.0

2 years ago

1.2.2

2 years ago

1.2.1

3 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago