/
Romenxek
/
Diplom
Обзор
Документация
Войти
/
Romenxek
/
Diplom
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/dotenv/lib/cli-options.js
17 строк
385 B
devyaterikov04@mail.ru
Number migrations instead of date, add emailverificationtokens, add config.js instead of config.json for Sequelize, correct migrations and models
28 май 2026, 04:03
28 май 2026, 04:03
fb99cd7
Код
Авторство
О чём код?
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 }