Skip to main content
Bun.file() 函数接受一个路径并返回一个 BunFile 实例。BunFile 类继承自 Blob,因此可以使用 .type 属性读取 MIME 类型。

有关如何使用 BunFile 的更多信息,请参阅文件 I/O