MCPcopy Create free account
hub / github.com/simstudioai/sim / envBoolean

Function envBoolean

apps/sim/lib/core/config/env.ts:633–638  ·  view source on GitHub ↗
(value: boolean | string | undefined | null)

Source from the content-addressed store, hash-verified

631 * the meaning of `MY_FLAG=false`.
632 */
633export function envBoolean(value: boolean | string | undefined | null): boolean | undefined {
634 if (typeof value === 'boolean') return value
635 if (value === undefined || value === null || value === '') return undefined
636 const normalized = String(value).trim().toLowerCase()
637 return normalized === 'true' || normalized === '1' || normalized === 'yes' || normalized === 'on'
638}

Callers 2

createSmtpProviderFunction · 0.90
config.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected