A configurable dotenv loader for multiple environments
npm install multienv-loader

> A configurable .env file loader for multiple environments inspired by dotenv and vue-cli
``bash`
yarn add multienv-loader
`bash`
npm install multienv-loader
At the top of your entry file:
`js`
require('multienv-loader').load() // or load(options)
Or directly from terminal (without options):
`sh`
node -r multienv-loader/load your_script.js
#### Options
- options.mode: Environment mode. Defaults to process.env.NODE_ENVoptions.envPath
- : Location of dotenv files. Defaults to process.cwd()options.envFiles
- : Array of dotenv filenames to load in order. Defaults to ['.env', '.env.[mode]', '.env.local', '.env.[mode].local']options.dry
- : Does not modify process.env. Defaults to falseoptions.override
- : Existing variables in process.env will be overriden by the dotenv files. Defaults to falseoptions.filter
- : Function that gets a variable name as first argument and returns whether or not it should be loaded. Defaults to () => true
#### Recommended .gitignore
``Local Env Files
.env.local
.env.*.local
#### Other
Internal functions like parse or safeLoad` are also exposed.