Skip to main content
The Bun.file() function accepts a path and returns a BunFile instance. The BunFile class extends Blob, so use the .type property to read the MIME type.

See File I/O for more on working with BunFile.