MCPcopy
hub / github.com/codeaashu/claude-code / isEnvDefinedFalsy

Function isEnvDefinedFalsy

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

Source from the content-addressed store, hash-verified

37}
38
39export function isEnvDefinedFalsy(
40 envVar: string | boolean | undefined,
41): boolean {
42 if (envVar === undefined) return false
43 if (typeof envVar === 'boolean') return !envVar
44 if (!envVar) return false
45 const normalizedValue = envVar.toLowerCase().trim()
46 return ['0', 'false', 'no', 'off'].includes(normalizedValue)
47}
48
49/**
50 * --bare / CLAUDE_CODE_SIMPLE — skip hooks, LSP, plugin sync, skill dir-walk,

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected