Skip to content
Search

Bun

lastmod 2026-02-24created 2022-07-077 edits

Fast JavaScript runtime/transpiler/NPM client based on JavaScriptCore

Features

  • A JavaScript runtime like Node and Deno
  • Developed with speed as the priority
  • Includes an npm-compatible package manager
    • Just replacing yarn with bun install installs packages 20x faster:
  • Developed by extending JavaScriptCore, used in WebKit
  • Designed so existing JavaScript/TypeScript apps can be used as-is: natively implements many node.js APIs including N-API, fs, path, and Buffer, and Web APIs including fetch, WebSocket, and ReadableStream
  • Implements Node.js's module resolution algorithm, so node_modules can be used. Supports both ESM and CommonJS. Uses ESM internally.
  • Every file is transpiled, so both TypeScript and JSX are supported.
  • Automatically loads environment variables from .env files, so there is no longer any need to use require('dotenv').load().

Projects

  • Elysia.js - Fast and friendly Bun web framework

See also

  • node
  • deno
  • Electrobun - Cross-platform desktop applications written in TypeScript
  • Bare - Fast, lightweight, modular JavaScript runtime
  • bunqueue - High-performance SQLite-based job queue for Bun. Supports DLQ/cron/S3 backup

Favorit esite

Article

author Zer0 sitemap