1.1.1 • Published 5 years ago

allenv v1.1.1

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
5 years ago

#Allenv

NPM

Loads environment variables from: .env file, Google Cloud Platform app.yaml file and Docker file.

##Usage

Import

const AllEnv = require('allenv');

Default configs

let allenv = new AllEnv();
allenv.load();

Default with custom

let allenv = new AllEnv({
        defaultPath: '/your/custom/files/path',
        sources: ['dotenv', 'docker', 'appyaml']
    });
allenv.load();

Custom Files Paths

let allenv = new AllEnv({
        defaultPath: '/your/custom/files/path',
        dockerPath : '',
        dotenvPath : '',
        appyamlPath : ''
    });
allenv.load();

##Overwriting

Custom Overwriting example

let allenv = new AllEnv({
        defaultPath: '/your/custom/files/path',  
        sources: ['appyaml','docker']
    });
allenv.load();