MCPcopy
hub / github.com/anomalyco/opencode / mimeType

Function mimeType

packages/opencode/src/util/filesystem.ts:105–108  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

103}
104
105export async function mimeType(p: string): Promise<string> {
106 const { lookup } = await import("mime-types")
107 return lookup(p) || "application/octet-stream"
108}
109
110/**
111 * On Windows, normalize a path to its canonical casing using the filesystem.

Callers

nothing calls this directly

Calls 1

lookupFunction · 0.50

Tested by

no test coverage detected