Type to search…

Bun

Bun is a toolkit and a runtime for TypeScript

Introduction

Bun is a runtime focused on performance and being all-in-one (runtime, bundler, package manager, transpiler).

Bun is designed to be a drop-in replacement for Node.js, supports most of the same APIs and features, and offers superior performance.

It uses JavaScriptCore to execute code like Safari, instead of V8 used by Node.js and Google Chrome.

Additionally, its libraries are written in the Zig language.

Work environment

Bun ships as a single, dependency-free executable. You can install it via script, package manager, or Docker across macOS, Linux, and Windows.

Install Bun with the official script.

shell
curl -fsSL https://bun.com/install | bash
Linux

The unzip package is required to install Bun. Use sudo apt install unzip to install the unzip package.

To check that Bun was installed successfully, open a new terminal window and verify with bun --version and bun --revision:

shell
bun --version

Once installed, the binary can upgrade itself:

shell
bun upgrade

You're reading a preview.

Sign in with Google to read the full page. A Google account includes 5 free pages in total; students and teachers read their course pages without limit.

Sign in