commit
This commit is contained in:
parent
5c93e9d8f7
commit
0afd108a82
20 changed files with 2096 additions and 19 deletions
11
node_modules/dotenv/lib/cli-options.js
generated
vendored
Normal file
11
node_modules/dotenv/lib/cli-options.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
const re = /^dotenv_config_(encoding|path|debug|override)=(.+)$/
|
||||
|
||||
module.exports = function optionMatcher (args) {
|
||||
return args.reduce(function (acc, cur) {
|
||||
const matches = cur.match(re)
|
||||
if (matches) {
|
||||
acc[matches[1]] = matches[2]
|
||||
}
|
||||
return acc
|
||||
}, {})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue