From dc649320f726d293bab516e985193317a49c8f0b Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Mon, 27 Dec 2021 17:15:19 +0100 Subject: [PATCH] Create cli-options.js --- node_modules/dotenv/lib/cli-options.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node_modules/dotenv/lib/cli-options.js diff --git a/node_modules/dotenv/lib/cli-options.js b/node_modules/dotenv/lib/cli-options.js new file mode 100644 index 0000000..ad69fab --- /dev/null +++ b/node_modules/dotenv/lib/cli-options.js @@ -0,0 +1,13 @@ +/* @flow */ + +const re = /^dotenv_config_(encoding|path|debug)=(.+)$/ + +module.exports = function optionMatcher (args /*: Array */) { + return args.reduce(function (acc, cur) { + const matches = cur.match(re) + if (matches) { + acc[matches[1]] = matches[2] + } + return acc + }, {}) +}