MCPcopy Index your code
hub / github.com/simstudioai/sim / extFromMime

Function extFromMime

apps/sim/lib/media/ffmpeg.ts:147–149  ·  view source on GitHub ↗
(mime: string)

Source from the content-addressed store, hash-verified

145}
146
147function extFromMime(mime: string): string {
148 return MIME_TO_EXT[mime] || mime.split('/')[1] || 'bin'
149}
150
151function mimeFromExt(ext: string): string {
152 return EXT_TO_MIME[ext] || 'application/octet-stream'

Callers 3

writeInputFunction · 0.85
trimFunction · 0.85
fadeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected