allenv
v1.1.1
Published
Loads environment variables from: .env file, Google Cloud Platform app.yaml file and Docker file
Downloads
32
Maintainers
Readme
#Allenv
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();