The bun module provides a streamlined interface for Bun, the all-in-one JavaScript runtime, packager, and test runner focused on speed.
When to Activate
- When requiring a high-speed runtime for JavaScript or TypeScript.
- When using Bun as a fast alternative to npm or yarn for package management.
- When performing local development tasks that benefit from Bun's performance.
Patterns & Examples
Run with Bun
# Execute a script using the Bun runtime
x bun run main.ts
Fast Installation
# Use Bun to install project dependencies quickly
x bun install
Checklist
- Confirm if the environment supports Bun.
- Verify if performance is a key requirement for the task.