MCPcopy Create free account
hub / github.com/github/awesome-copilot / normalizeText

Function normalizeText

eng/generate-website-data.mjs:100–102  ·  view source on GitHub ↗
(value, fallback = "")

Source from the content-addressed store, hash-verified

98}
99
100function normalizeText(value, fallback = "") {
101 return typeof value === "string" ? value.trim() : fallback;
102}
103
104/**
105 * Normalize an author value (npm string form or { name, url } object) to

Callers 6

normalizeAuthorFunction · 0.70
resolveImageUrlFunction · 0.70
resolveExpressionFunction · 0.70
generateCanvasManifestFunction · 0.70
toExtensionRelativePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected