Bun Shell Has a Free API You've Never Heard Of
javascript
dev.to
Bun Shell ($) is a cross-platform shell built into Bun that lets you run shell commands directly in JavaScript/TypeScript. It's not just a child_process wrapper — it's a full shell with pipes, redirects, and globbing that works identically on macOS, Linux, and Windows. What Makes Bun Shell Special? Cross-platform — same scripts work on macOS, Linux, Windows Template literals — write shell commands as tagged templates JavaScript interop — pipe between JS and shell seamlessly Buil