Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
DATA_AND_DATABASES
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Bun JavaScript Runtime Cheat Sheet

Bun JavaScript Runtime Cheat Sheet

Back to Backend DevelopmentUpdated 2026-05-16

Bun is an all-in-one JavaScript runtime, package manager, bundler, and test runner built to replace Node.js and the fragmented JavaScript tooling ecosystem. Written in Zig and powered by Apple's JavaScriptCore engine, Bun delivers cold start times under 15ms and installs packages up to 35× faster than npm. Unlike Node.js, Bun ships with native support for TypeScript, JSX, SQLite, testing, and HTTP servers—no configuration required. From local development to production deployment, Bun unifies what used to require a dozen separate tools into a single, dependency-free binary that runs on macOS, Linux, and Windows.

What This Cheat Sheet Covers

This topic spans 20 focused tables and 143 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Installation & SetupTable 2: Runtime ExecutionTable 3: Package Manager CommandsTable 4: Built-in HTTP Server (Bun.serve)Table 5: File I/O OperationsTable 6: Built-in SQLite DatabaseTable 7: Testing FrameworkTable 8: Bundler & BuildTable 9: TypeScript SupportTable 10: Environment VariablesTable 11: WebSocket ServerTable 12: Shell Scripting (Bun.$)Table 13: Child Processes & SpawnTable 14: Streaming APIsTable 15: Crypto & HashingTable 16: Module ResolutionTable 17: Development Tools (Watch Mode, Hot Reload)Table 18: Workspaces & MonorepoTable 19: Docker & DeploymentTable 20: Performance Benchmarking

Table 1: Installation & Setup

CommandExampleDescription
Install Bun (macOS/Linux)
curl -fsSL https://bun.sh/install | bash
• Downloads and installs Bun to ~/.bun/bin
• adds to PATH automatically
Install Bun (Windows)
powershell -c "irm bun.sh/install.ps1 | iex"
• PowerShell installation script for Windows
• requires Windows 10 1903+ or Windows 11.
Verify installation
bun --version
Prints installed Bun version (e.g., 1.3.8).
Upgrade Bun
bun upgrade
Updates Bun to the latest stable version.

More in Backend Development

  • Background Job Processing Systems Cheat Sheet
  • Database Connection Pooling and Management Cheat Sheet
  • _Elysia_Framework_for_Bun
  • Backend Error Handling and Recovery Patterns Cheat Sheet
  • Firebase Cheat Sheet
  • NestJS TypeScript Backend Framework Cheat Sheet
View all 53 topics in Backend Development