# Bun Write to stdout

> Write to stdout

- Skill: `jarle/bun-write-to-stdout` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jarle/bun-write-to-stdout`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jarle/bun-write-to-stdout/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jarle (https://skillmd.com/u/jarle)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jarle/bun-write-to-stdout

---


# Write to stdout

The `console.log` function writes to `stdout`. It will automatically append a line break at the end of the printed data.

```ts  theme={"theme":{"light":"github-light","dark":"dracula"}}
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()`](/runtime/file-io#writing-files-bun-write).

```ts  theme={"theme":{"light":"github-light","dark":"dracula"}}
await Bun.write(Bun.stdout, "Lorem ipsum");
```

***

See [Docs > API > File I/O](/runtime/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.

