Run JavaScript With Bun

Execute scripts, install packages and bundle projects with one fast binary.

macOSpackagesbuildscriptingLow risk
Run bun x cowsay hello to execute a package binary without a global install.

01Command

Command
$ bun x cowsay hello

02What 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

RiskLow risk
CompatibilitymacOS with Homebrew installed
!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 documentation
    Official project · vendor-doc · 2026-09-20
    Evidence: Packages Bun, a fast JavaScript runtime, bundler, test runner and package manager.
  • Homebrew formula: bun
    Homebrew · vendor-doc · 2026-09-20
    Evidence: 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

06Related solutions