Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.
options.files
is a new configuration option that allows explicitly specifying a list (and the order) of .env* files to load (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/87).⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v4.0.1...v4.1.0
dotenv-flow/config
using Mocha's -r
switch (Issue: #81, PR: https://github.com/kerimdzhanov/dotenv-flow/pull/82).⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v4.0.0...v4.0.1
options.pattern
- is a new configuration option that allows customizing the default .env*
files' naming convention. The default value of the pattern is .env[.node_env][.local]
as of the current default naming convention (see PR https://github.com/kerimdzhanov/dotenv-flow/pull/71 for more details).
options.debug
- is another new configuration option that if enabled, turns on dotenv-flow debug messaging (PR https://github.com/kerimdzhanov/dotenv-flow/pull/76).
.d.ts
files) for better support of typescript and improved code completion (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/77)..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70)..env*
files (by @aymericbouzy in https://github.com/kerimdzhanov/dotenv-flow/pull/54)..d.ts
files) replace the "Definitely Typed" @types/dotenv-flow
package but might be conflicting. If you have @types/dotenv-flow
typings package in your package.json
dependencies, please make sure to remove it once you upgrade dotenv-flow to v4 or above..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70).options.cwd
has been removed, please use options.path
instead (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/72)..listDotenvFiles(dirname, options)
has been replaced with .listFiles(options)
. If you're using the method, please replace it with the new one. It receives optional options.path
, options.node_env
, and options.pattern
and returns a list of existing .env*
files (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/75)..env*
files and make sure that all the #
and backtick symbols are properly quoted if they are part of the value.⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v3.3.0...v4.0.0
options.pattern
- is a new configuration option that allows customizing the default .env*
files' naming convention. The default value of the pattern is .env[.node_env][.local]
as of the current default naming convention (see PR https://github.com/kerimdzhanov/dotenv-flow/pull/71 for more details).
options.debug
- is another new configuration option that if enabled, turns on dotenv-flow debug messaging (PR https://github.com/kerimdzhanov/dotenv-flow/pull/76).
.d.ts
files) for better support of typescript and improved code completion (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/77)..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70)..env*
files (by @aymericbouzy in https://github.com/kerimdzhanov/dotenv-flow/pull/54)..d.ts
files) replace the "Definitely Typed" @types/dotenv-flow
package but might be conflicting. If you have @types/dotenv-flow
typings package in your package.json
dependencies, please make sure to remove it once you upgrade dotenv-flow to v4 or above..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70).options.cwd
has been removed, please use options.path
instead (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/72)..listDotenvFiles(dirname, options)
has been replaced with .listFiles(options)
. If you're using the method, please replace it with the new one. It receives optional options.path
, options.node_env
, and options.pattern
and returns a list of existing .env*
files (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/75)..env*
files and make sure that all the #
and backtick symbols are properly quoted if they are part of the value.DEFAULT_PATTERN
⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v3.3.0...v4.0.0-rc.3
options.pattern
- is a new configuration option that allows customizing the default .env*
files' naming convention. The default value of the pattern is .env[.node_env][.local]
as of the current default naming convention (see PR https://github.com/kerimdzhanov/dotenv-flow/pull/71 for more details).
options.debug
- is another new configuration option that if enabled, turns on dotenv-flow debug messaging (PR https://github.com/kerimdzhanov/dotenv-flow/pull/76).
.d.ts
files) for better support of typescript and improved code completion (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/77)..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70)..env*
files (by @aymericbouzy in https://github.com/kerimdzhanov/dotenv-flow/pull/54)..d.ts
files) replace the "Definitely Typed" @types/dotenv-flow
package but might be conflicting. If you have @types/dotenv-flow
typings package in your package.json
dependencies, please make sure to remove it once you upgrade dotenv-flow to v4 or above..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70).options.cwd
has been removed, please use options.path
instead (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/72)..listDotenvFiles(dirname, options)
has been replaced with .listFiles(options)
. If you're using the method, please replace it with the new one. It receives optional options.path
, options.node_env
, and options.pattern
and returns a list of existing .env*
files (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/75)..env*
files and make sure that all the #
and backtick symbols are properly quoted if they are part of the value.⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v3.3.0...v4.0.0-rc.2
options.pattern
- is a new configuration option that allows customizing the default .env*
files' naming convention. The default value of the pattern is .env[.node_env][.local]
as of the current default naming convention (see PR https://github.com/kerimdzhanov/dotenv-flow/pull/71 for more details).
options.debug
- is another new configuration option that if enabled, turns on dotenv-flow debug messaging (PR https://github.com/kerimdzhanov/dotenv-flow/pull/76).
.d.ts
files) for better support of typescript and improved code completion (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/77)..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70)..env*
files (by @aymericbouzy in https://github.com/kerimdzhanov/dotenv-flow/pull/54)..d.ts
files) replace the "Definitely Typed" @types/dotenv-flow
package but might be conflicting. If you have @types/dotenv-flow
typings package in your package.json
dependencies, please make sure to remove it once you upgrade dotenv-flow to v4 or above..config()
method is now returning an .error
if none of the appropriate .env*
files is present (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/70).options.cwd
has been removed, please use options.path
instead (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/72)..listDotenvFiles(dirname, options)
has been replaced with .listFiles(options)
. If you're using the method, please replace it with the new one. It receives optional options.path
, options.node_env
, and options.pattern
and returns a list of existing .env*
files (PR: https://github.com/kerimdzhanov/dotenv-flow/pull/75)..env*
files and make sure that all the #
and backtick symbols are properly quoted if they are part of the value.⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v3.3.0...v4.0.0-rc.1
import dotenvFlow from 'dotenv-flow'
or require 'dotenv-flow/config'
for importing and autoloading environment variables from TS/ES6+ by @perrin4869 in #57 (commit a20c0f)dotenv
to v8.6.0 (fully backward compatible with [email protected]
branch)options.purge_dotenv
is provided, load the rest of .env* files even if .env doesn't exist (07502e3), closes #50⺠https://github.com/kerimdzhanov/dotenv-flow/compare/v3.2.0...v3.3.0