Skip to main content
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.
cat.ts

See Bun.write().