Skip to main content
The console.log function writes to stdout and appends a line break to the printed data.

Bun also exposes stdout as a BunFile with the Bun.stdout property. Pass it as the destination to Bun.write().

See Bun.write().