MCPcopy
hub / github.com/holaboss-ai/holaOS / normalizeString

Function normalizeString

runtime/api-server/src/integration-context-fetch.ts:682–688  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

680}
681
682function normalizeString(value: unknown): string | null {
683 if (typeof value !== "string") {
684 return null;
685 }
686 const trimmed = value.trim();
687 return trimmed.length > 0 ? trimmed : null;
688}
689
690function normalizeBoolean(value: unknown): boolean | null {
691 if (typeof value === "boolean") {

Callers 15

stringListFunction · 0.70
gmailHeaderValueFunction · 0.70
githubRepositoryFullNameFunction · 0.70
decodeMaybeBase64Function · 0.70
slackNestedTextFunction · 0.70
nextPageTokenFromDataFunction · 0.70
googleSheetNamesFromDataFunction · 0.70
notionMarkdownFromDataFunction · 0.70
notionRichTextTextFunction · 0.70
notionPropertyTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected