Create cli-options.js

This commit is contained in:
ZyLacx 2021-12-27 17:15:19 +01:00
parent f8014e3ee0
commit dc649320f7

13
node_modules/dotenv/lib/cli-options.js generated vendored Normal file
View file

@ -0,0 +1,13 @@
/* @flow */
const re = /^dotenv_config_(encoding|path|debug)=(.+)$/
module.exports = function optionMatcher (args /*: Array<string> */) {
return args.reduce(function (acc, cur) {
const matches = cur.match(re)
if (matches) {
acc[matches[1]] = matches[2]
}
return acc
}, {})
}