MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / normalizeMime

Function normalizeMime

src/utils/binaryExtensions.js:379–382  ·  view source on GitHub ↗
(mime)

Source from the content-addressed store, hash-verified

377}
378
379function normalizeMime(mime) {
380 if (!mime || typeof mime !== "string") return "";
381 return mime.split(";")[0].trim().toLowerCase();
382}

Callers 2

isBinaryMimeFunction · 0.85
isTextMimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected