Warning: main(): unterminated entity reference _ol\]\:list-outside ol{list-style-position:outside}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-4 ol{padding-left:1rem}.\[\&_ul\]\:list-outside ul{list-style-position:outside}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-4 ul{padding-left:1rem} in /home/feelan/public_html/ir.apponweb.api/tools/agfdsjafkdsgfkyugebhekjhevbyujec.php on line 264
Write to stdout | Bun Examples
Bun

GuidesWriting files

Write to stdout with Bun

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().