MCPcopy Index your code
hub / github.com/coder/code-server / getMediaMime

Function getMediaMime

src/node/util.ts:361–363  ·  view source on GitHub ↗
(filePath?: string)

Source from the content-addressed store, hash-verified

359}
360
361export const getMediaMime = (filePath?: string): string => {
362 return (filePath && mimeTypes[path.extname(filePath)]) || "text/plain"
363}
364
365/**
366 * A helper function that checks if the platform is Windows Subsystem for Linux

Callers 2

registerFunction · 0.90
errorHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected