MCPcopy Create free account
hub / github.com/deta/surf / getContentType

Function getContentType

app/src/main/utils.ts:191–193  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

189 * @returns The content type of the file
190 */
191export function getContentType(filePath: string) {
192 return mimeTypes.lookup(filePath) || 'text/plain'
193}

Callers 1

serveFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected