MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getImageMimeType

Function getImageMimeType

common/src/constants/images.ts:34–36  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

32 * Get MIME type for an image extension
33 */
34export function getImageMimeType(ext: string): string | null {
35 return IMAGE_EXTENSION_TO_MIME[ext.toLowerCase()] ?? null
36}
37
38/**
39 * Image extensions as a regex alternation pattern (without dots)

Callers 1

processImageFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected