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

Function normalizeOptionalString

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

Source from the content-addressed store, hash-verified

104 return Object.prototype.hasOwnProperty.call(env, key);
105}
106
107function normalizeOptionalString(value: string | undefined): string | undefined {
108 if (value === undefined) {
109 return undefined;
110 }
111
112 const trimmed = value.trim();
113 return trimmed || undefined;
114}
115
116function parseBooleanEnv(value: string | undefined): boolean | undefined {

Callers 1

resolveRuntimeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected