MCPcopy Create free account
hub / github.com/Noumena-Network/code / isEnvDefinedFalsy

Function isEnvDefinedFalsy

src/utils/envUtils.ts:69–77  ·  view source on GitHub ↗
(
  envVar: string | boolean | undefined,
)

Source from the content-addressed store, hash-verified

67}
68
69export function isEnvDefinedFalsy(
70 envVar: string | boolean | undefined,
71): boolean {
72 if (envVar === undefined) return false
73 if (typeof envVar === 'boolean') return !envVar
74 if (!envVar) return false
75 const normalizedValue = envVar.toLowerCase().trim()
76 return ['0', 'false', 'no', 'off'].includes(normalizedValue)
77}
78
79/**
80 * --bare / NCODE_SIMPLE — skip hooks, LSP, plugin sync, skill dir-walk,

Callers 15

isReplModeEnabledFunction · 0.85
isJsReplEnabledFunction · 0.85
getToolSearchModeFunction · 0.85
betas.tsFile · 0.85
isFullscreenEnvEnabledFunction · 0.85
ripgrep.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected