MCPcopy Create free account
hub / github.com/TheNetsky/Microsoft-Rewards-Script / envBool

Function envBool

scripts/utils.js:143–147  ·  view source on GitHub ↗
(key, fallback)

Source from the content-addressed store, hash-verified

141}
142
143function envBool(key, fallback) {
144 const v = envStr(key)
145 if (v === undefined) return fallback
146 return ['1', 'true', 'yes', 'on'].includes(v.toLowerCase())
147}
148
149const deprecationWarned = new Set()
150function envBoolWithLegacy(primary, legacy, fallback) {

Callers 2

envBoolWithLegacyFunction · 0.70
loadAccountsFromEnvFunction · 0.70

Calls 1

envStrFunction · 0.70

Tested by

no test coverage detected