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

Function envStr

scripts/utils.js:136–141  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

134}
135
136function envStr(key) {
137 const v = process.env[key]
138 if (v === undefined) return undefined
139 const trimmed = v.trim()
140 return trimmed.length ? trimmed : undefined
141}
142
143function envBool(key, fallback) {
144 const v = envStr(key)

Callers 4

envBoolFunction · 0.70
envBoolWithLegacyFunction · 0.70
envIntFunction · 0.70
loadAccountsFromEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected