MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / getExtension

Function getExtension

src/utils.ts:99–104  ·  view source on GitHub ↗
(mimeType: string)

Source from the content-addressed store, hash-verified

97}
98
99export function getExtension(mimeType: string): string | null {
100 for (const [ext, mime] of Object.entries(MIME_MAP)) {
101 if (mime === mimeType) return ext;
102 }
103 return null;
104}
105
106export function basename(url: string): string {
107 try {

Callers 1

uploadFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected