(p: string)
| 103 | } |
| 104 | |
| 105 | export 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. |