1---2name: bun-write-to-stdout3description: Write to stdout4---56# Write to stdout78The `console.log` function writes to `stdout`. It will automatically append a line break at the end of the printed data.910```ts theme={"theme":{"light":"github-light","dark":"dracula"}}11console.log("Lorem ipsum");12```1314***1516For 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).1718```ts theme={"theme":{"light":"github-light","dark":"dracula"}}19await Bun.write(Bun.stdout, "Lorem ipsum");20```2122***2324See [Docs > API > File I/O](/runtime/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
Run npx skillmds@latest add jarle/bun-write-to-stdout in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Write to stdout It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
jarle (@jarle) published this skill. Their other Agent Skills are listed on their SkillMD profile.