mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
568 B
568 B
name
| name |
|---|
| Write to stdout |
The console.log function writes to stdout. It will automatically append a line break at the end of the printed data.
console.log("Lorem ipsum");
For more advanced use cases, Bun exposes stdout as a BunFile via the Bun.stdout property. This can be used as a destination for Bun.write().
await Bun.write(Bun.stdout, "Lorem ipsum");
See Docs > API > File I/O for complete documentation of Bun.write().