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

Function isBinaryMime

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

Source from the content-addressed store, hash-verified

361}
362
363export function isBinaryMime(mime) {
364 const normalized = normalizeMime(mime);
365 if (!normalized || isTextMime(normalized)) return false;
366 if (binaryMimeTypes.has(normalized)) return true;
367
368 return binaryMimePrefixes.some((prefix) => normalized.startsWith(prefix));
369}
370
371function isTextMime(mime) {
372 const normalized = normalizeMime(mime);

Callers 1

isBinaryFileFunction · 0.85

Calls 2

normalizeMimeFunction · 0.85
isTextMimeFunction · 0.85

Tested by

no test coverage detected