Need private packages and team management tools?Check out npm Teams »

allenv

1.1.1 • Public • Published

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();

Install

npm i allenv

DownloadsWeekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

15.8 kB

Total Files

15

Last publish

Collaborators

  • avatar