generated at
Bun.js
「Bun」を訳すと「饅頭」


特徴
JavaScriptのPackage Managerでありつつ、package manager, bundler, test runnerなども内包する
JS EngineにはJavaScriptCore (JSC)を使用している
TypeScriptがfirst-classで使える
Node.jsと互換性がある
nodejsのAPIが使用できる












I/Oの抽象化
macはkqueue、linuxはio_uring

Bunのroadmap
SQLiteを最初から同梱している
ts
import sqlite from "bun:sqlite";



中身


非常に良いmrsekutmrsekut


docs
Intro
What is Bun?
Installation
Quickstart
TypeScript
Templating
bun init
bun create
Runtime
bun run
File types
TypeScript
JSX
Environment variables
Bun APIs
Web APIs
Node.js compatibility
Single-file executable
Plugins
Watch mode
Module resolution
Auto-install
bunfig.toml
Debugger
Package manager
bun add
bun remove
bun update
bun link
bun pm
Global cache
Workspaces
Lifecycle scripts
Filter
Lockfile
Scopes and registries
Overrides and resolutions
Patch dependencies
.npmrc support

Bundler
Bun.build
Loaders
Plugins
Macros
vs esbuild
Package runner
API
HTTP server
WebSockets
Workers
Binary data
Streams
File I/O
import.meta
SQLite
FileSystemRouter
TCP sockets
UDP sockets
Globals
Shell
Child processes
Transpiler
Hashing
Console
FFI
HTMLRewriter
Testing
Utils
Node-API
Glob
DNS
Semver