Skip to main content
Bun 通过 Bun.stdout 属性将 stdout 暴露为 BunFile。将其作为目标传递给 Bun.write() 以下代码将文件写入 stdout,类似于 Unix 的 cat 命令。
cat.ts

参见 Bun.write()