Run JavaScript With Bun
Execute scripts, install packages and bundle projects with one fast binary.
Run bun x cowsay hello to execute a package binary without a global install.
01Command
Command
$ bun x cowsay hello02What it does
Bun aims to replace node, npm, npx, jest and esbuild with a single fast tool. It runs TypeScript directly, has a built-in test runner and bundler, and its package install is significantly faster than npm in many cases.
03Risk
!Warning: Some Node APIs and native addons are not fully supported yet; validate compatibility before swapping it into production.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Official project documentationEvidence: Packages Bun, a fast JavaScript runtime, bundler, test runner and package manager.
- Homebrew formula: bunEvidence: Incredibly fast JavaScript runtime, bundler, test runner, and package manager. Packages Bun, a fast JavaScript runtime, bundler, test runner and package manager.
Last verified: 2026-09-22 · Category: Developer