MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / parseBooleanEnv

Function parseBooleanEnv

src/runtime/config.ts:115–128  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

113 return trimmed || undefined;
114}
115
116function parseBooleanEnv(value: string | undefined): boolean | undefined {
117 if (value === undefined) {
118 return undefined;
119 }
120
121 const normalized = value.trim().toLowerCase();
122 if (TRUE_ENV_VALUES.has(normalized)) {
123 return true;
124 }
125 if (FALSE_ENV_VALUES.has(normalized)) {
126 return false;
127 }
128 return undefined;
129}
130
131function normalizeFeishuAdapterConfig(

Callers 1

resolveRuntimeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected