Escriu per cercar…

Bun

Bun is a toolkit and a runtime for TypeScript

Aquesta pàgina encara no s'ha traduït — es mostra en l'idioma original:English

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

Estàs llegint una vista prèvia.

Inicia sessió amb Google per llegir la pàgina completa. Un compte de Google inclou 5 pàgines gratuïtes en total; l'alumnat i el professorat llegeixen les pàgines del seu curs sense límit.

Inicia sessió