From af088b838f12469ef07fa57b6123988fb490c3fe Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Mon, 27 Dec 2021 17:15:30 +0100 Subject: [PATCH] Create env-options.js --- node_modules/dotenv/lib/env-options.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 node_modules/dotenv/lib/env-options.js diff --git a/node_modules/dotenv/lib/env-options.js b/node_modules/dotenv/lib/env-options.js new file mode 100644 index 0000000..b4c4a60 --- /dev/null +++ b/node_modules/dotenv/lib/env-options.js @@ -0,0 +1,18 @@ +/* @flow */ + +// ../config.js accepts options via environment variables +const options = {} + +if (process.env.DOTENV_CONFIG_ENCODING != null) { + options.encoding = process.env.DOTENV_CONFIG_ENCODING +} + +if (process.env.DOTENV_CONFIG_PATH != null) { + options.path = process.env.DOTENV_CONFIG_PATH +} + +if (process.env.DOTENV_CONFIG_DEBUG != null) { + options.debug = process.env.DOTENV_CONFIG_DEBUG +} + +module.exports = options