When using node, to determine the type of a file, the file-type or mime packages might be used. But when using BrowserFS, these packages aren't available.
// even if you try (lol)
Uncaught TypeError: n is null
require browserfs.ts:31
<anonymous> debugger eval code:1
How can I find out the mime-type of a file using BrowserFS?
When using node, to determine the type of a file, the
file-type
ormime
packages might be used. But when using BrowserFS, these packages aren't available.How can I find out the mime-type of a file using BrowserFS?