/
Dante
/
node-core
Обзор
Документация
Войти
/
Dante
/
node-core
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/dotenv/lib/cli-options.js
11 строк
289 B
Александр Данилюк
add
24 сен 2024, 12:59
24 сен 2024, 12:59
9eaeea8
Код
Авторство
О чём код?
const re = /^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/ 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 }, {}) }