stdout
as a BunFile
with the Bun.stdout
property. This can be used as a destination for Bun.write()
.
This code writes a file to stdout
similar to the cat
command in Unix.
See Docs > API > File I/O for complete documentation of
Bun.write()
.