本页还没有译文
本页 4 段还没译成한국어,下面显示的是英文原文。Write a file to stdout
还没翻译译自英文(bun.com)本页 4 段都还没译
Bun exposes stdout as a BunFile with the Bun.stdout property. Pass it as the destination to Bun.write().
The following code writes a file to stdout, like the Unix cat command.
const path = "/path/to/file.txt";
const file = Bun.file(path);
await Bun.write(Bun.stdout, file);See Bun.write().
AI 翻译查看英文原文