Files
webcoredesktop/content/software/bun.md
T
2026-10-28 15:08:48 -06:00

32 lines
1.0 KiB
Markdown

---
title: "Bun"
category: "Languages and runtimes"
tagline: "A JavaScript runtime, package manager, bundler and test runner in one fast tool."
source: "pacman"
package: "bun"
command: "bun"
website: "https://bun.com/"
code: "https://github.com/oven-sh/bun"
links:
- name: "Bun documentation"
url: "https://bun.com/docs"
---
## What it is
Bun runs JavaScript and TypeScript, like Node.js, and also installs packages, bundles code and runs tests, all from one binary. It aims to work as a drop-in replacement for Node.js in most projects, and runs TypeScript files directly without a separate build step.
## Why it's here
- **Fast installs.** `bun install` reads `package.json` and installs dependencies much faster than npm.
- **TypeScript without setup.** `bun run file.ts` just works.
- **Fewer tools.** Runtime, package manager, bundler and test runner in one.
## On CoreDesktop
Bun is installed from pacman, alongside Node.js, so you can use either per project. `update` keeps it current with the rest of the pacman packages.
```
bun run index.ts
```