What problem does it solve?
Provide practical patterns, examples, and operational guidance for building TypeScript command-line tools and small server utilities that run on the Bun runtime, reducing guesswork and integration errors when adopting Bun for CLI apps.
Core Features & Use Cases
- Guidance for project structure (Bash wrapper + TypeScript implementation), testing with bun:test, and strict TypeScript configuration for reproducible CLI tooling.
- API and pattern references for Bun Shell ($), Bun.spawn / spawnSync, Bun.file file I/O, Bun.Archive, bun:sqlite, Bun.serve HTTP servers and WebSockets, Bun.build bundling and compiling to executables, and Bun.crypto utilities.
- Examples ranging from simple file-processing scripts to complex multi-command tools with integration tests, packaging guidance, and cross-platform bundling for production distribution.
Quick Start
Create a Bun TypeScript CLI skeleton that reads an input file, implements pure functions for processing, includes bun:test unit and integration tests, and provides a Bash wrapper for installation.