/
erioxis
/
web-nodejs
Обзор
Документация
Войти
/
erioxis
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
backend/node_modules/dotenv/lib/cli-options.js
17 строк
385 B
erioxis
lab11fix
15 дек 2025, 23:21
15 дек 2025, 23:21
70dc7ba
Код
Авторство
О чём код?
const re = /^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/ module.exports = function optionMatcher (args) { const options = args.reduce(function (acc, cur) { const matches = cur.match(re) if (matches) { acc[matches[1]] = matches[2] } return acc }, {}) if (!('quiet' in options)) { options.quiet = 'true' } return options }