# Bun

> Documentation corpus for Bun. 312 pages.

## Concept Index

- **usage** — [`bun/docs/runtime/ffi/index.md`](bun/docs/runtime/ffi/index.md)
- **reference** — [`bun/docs/bundler/plugins/index.md`](bun/docs/bundler/plugins/index.md)
- **jsx** — [`bun/docs/runtime/jsx/index.md`](bun/docs/runtime/jsx/index.md)
- **cli usage** — [`bun/docs/pm/cli/patch/index.md`](bun/docs/pm/cli/patch/index.md)
- **basic usage** — [`bun/docs/runtime/s3/index.md`](bun/docs/runtime/s3/index.md)
- **error handling** — [`bun/docs/runtime/jsonl/index.md`](bun/docs/runtime/jsonl/index.md)
- **onresolve** — [`bun/docs/bundler/esbuild/index.md`](bun/docs/bundler/esbuild/index.md)
- **onload** — [`bun/docs/bundler/esbuild/index.md`](bun/docs/bundler/esbuild/index.md)
- **json** — [`bun/docs/bundler/loaders/index.md`](bun/docs/bundler/loaders/index.md)
- **use the official bun image to run the application** — [`bun/docs/guides/deployment/aws-lambda/index.md`](bun/docs/guides/deployment/aws-lambda/index.md)
- **copy the packagejson and bunlock into the container** — [`bun/docs/guides/deployment/aws-lambda/index.md`](bun/docs/guides/deployment/aws-lambda/index.md)
- **install the dependencies** — [`bun/docs/guides/deployment/aws-lambda/index.md`](bun/docs/guides/deployment/aws-lambda/index.md)
- **copy the rest of the application into the container** — [`bun/docs/guides/deployment/aws-lambda/index.md`](bun/docs/guides/deployment/aws-lambda/index.md)
- **configuration** — [`bun/docs/runtime/jsx/index.md`](bun/docs/runtime/jsx/index.md)
- **overview** — [`bun/docs/quickstart/index.md`](bun/docs/quickstart/index.md)
- **examples** — [`bun/docs/pm/cli/pm/index.md`](bun/docs/pm/cli/pm/index.md)
- **quickstart** — [`bun/docs/runtime/cron/index.md`](bun/docs/runtime/cron/index.md)
- **runtime api** — [`bun/docs/runtime/toml/index.md`](bun/docs/runtime/toml/index.md)
- **module import** — [`bun/docs/runtime/toml/index.md`](bun/docs/runtime/toml/index.md)
- **es modules** — [`bun/docs/runtime/toml/index.md`](bun/docs/runtime/toml/index.md)
- **commonjs** — [`bun/docs/runtime/toml/index.md`](bun/docs/runtime/toml/index.md)
- **features** — [`bun/docs/runtime/sql/index.md`](bun/docs/runtime/sql/index.md)
- **performance** — [`bun/docs/runtime/ffi/index.md`](bun/docs/runtime/ffi/index.md)
- **javascript api** — [`bun/docs/bundler/esbuild/index.md`](bun/docs/bundler/esbuild/index.md)
- **to support cpus from before 2013 use the baseline version nehalem** — [`bun/docs/bundler/executables/index.md`](bun/docs/bundler/executables/index.md)
- **to explicitly only support cpus from 2013 and later use the modern version haswell** — [`bun/docs/bundler/executables/index.md`](bun/docs/bundler/executables/index.md)
- **api** — [`bun/docs/bundler/index.md`](bun/docs/bundler/index.md)
- **built-in loaders** — [`bun/docs/bundler/loaders/index.md`](bun/docs/bundler/loaders/index.md)
- **tsx** — [`bun/docs/bundler/loaders/index.md`](bun/docs/bundler/loaders/index.md)
- **jsonc** — [`bun/docs/bundler/loaders/index.md`](bun/docs/bundler/loaders/index.md)
- **toml** — [`bun/docs/bundler/loaders/index.md`](bun/docs/bundler/loaders/index.md)
- **lifecycle hooks** — [`bun/docs/bundler/plugins/index.md`](bun/docs/bundler/plugins/index.md)
- **plugin lifecycle** — [`bun/docs/bundler/plugins/index.md`](bun/docs/bundler/plugins/index.md)
- **namespaces** — [`bun/docs/bundler/plugins/index.md`](bun/docs/bundler/plugins/index.md)
- **onstart** — [`bun/docs/bundler/plugins/index.md`](bun/docs/bundler/plugins/index.md)
- **run the application** — [`bun/docs/guides/deployment/digital-ocean/index.md`](bun/docs/guides/deployment/digital-ocean/index.md)
- **any other files or directories you want to exclude** — [`bun/docs/guides/deployment/digital-ocean/index.md`](bun/docs/guides/deployment/digital-ocean/index.md)
- **hot reloading** — [`bun/docs/guides/ecosystem/react/index.md`](bun/docs/guides/ecosystem/react/index.md)
- **you can use an environment variable here** — [`bun/docs/guides/install/azure-artifacts/index.md`](bun/docs/guides/install/azure-artifacts/index.md)
- **set default registry as a string** — [`bun/docs/pm/scopes-registries/index.md`](bun/docs/pm/scopes-registries/index.md)
- **you can reference environment variables** — [`bun/docs/pm/scopes-registries/index.md`](bun/docs/pm/scopes-registries/index.md)
- **typescript support** — [`bun/docs/test/dom/index.md`](bun/docs/test/dom/index.md)
- **to require 90 line-level and function-level coverage** — [`bun/docs/test/code-coverage/index.md`](bun/docs/test/code-coverage/index.md)
- **to set different thresholds for lines and functions** — [`bun/docs/test/code-coverage/index.md`](bun/docs/test/code-coverage/index.md)
- **output 1xy** — [`bun/docs/installation/index.md`](bun/docs/installation/index.md)
- **logging** — [`bun/docs/runtime/jsx/index.md`](bun/docs/runtime/jsx/index.md)
- **install dependencies for all workspaces except pkg-c** — [`bun/docs/pm/filter/index.md`](bun/docs/pm/filter/index.md)
- **options** — [`bun/docs/pm/cli/pm/index.md`](bun/docs/pm/cli/pm/index.md)
- **strings** — [`bun/docs/runtime/ffi/index.md`](bun/docs/runtime/ffi/index.md)
- **properties** — [`bun/docs/runtime/cookies/index.md`](bun/docs/runtime/cookies/index.md)

## Pages by Area

### docs
- [Bytecode Caching](bun/docs/bundler/bytecode/index.md)
- [CSS](bun/docs/bundler/css/index.md)
- [esbuild](bun/docs/bundler/esbuild/index.md)
- [Single-file executable](bun/docs/bundler/executables/index.md)
- [Fullstack dev server](bun/docs/bundler/fullstack/index.md)
- [Hot reloading](bun/docs/bundler/hot-reloading/index.md)
- [HTML & static sites](bun/docs/bundler/html-static/index.md)
- [Bundler](bun/docs/bundler/index.md)
- [Loaders](bun/docs/bundler/loaders/index.md)
- [Macros](bun/docs/bundler/macros/index.md)
- [Minifier](bun/docs/bundler/minifier/index.md)
- [Plugins](bun/docs/bundler/plugins/index.md)
- [Standalone HTML](bun/docs/bundler/standalone-html/index.md)
- [Feedback](bun/docs/feedback/index.md)
- [Convert an ArrayBuffer to an array of numbers](bun/docs/guides/binary/arraybuffer-to-array/index.md)
- [Convert an ArrayBuffer to a Blob](bun/docs/guides/binary/arraybuffer-to-blob/index.md)
- [Convert an ArrayBuffer to a Buffer](bun/docs/guides/binary/arraybuffer-to-buffer/index.md)
- [Convert an ArrayBuffer to a string](bun/docs/guides/binary/arraybuffer-to-string/index.md)
- [Convert an ArrayBuffer to a Uint8Array](bun/docs/guides/binary/arraybuffer-to-typedarray/index.md)
- [Convert a Blob to an ArrayBuffer](bun/docs/guides/binary/blob-to-arraybuffer/index.md)
- [Convert a Blob to a DataView](bun/docs/guides/binary/blob-to-dataview/index.md)
- [Convert a Blob to a ReadableStream](bun/docs/guides/binary/blob-to-stream/index.md)
- [Convert a Blob to a string](bun/docs/guides/binary/blob-to-string/index.md)
- [Convert a Blob to a Uint8Array](bun/docs/guides/binary/blob-to-typedarray/index.md)
- [Convert a Buffer to an ArrayBuffer](bun/docs/guides/binary/buffer-to-arraybuffer/index.md)
- [Convert a Buffer to a blob](bun/docs/guides/binary/buffer-to-blob/index.md)
- [Convert a Buffer to a ReadableStream](bun/docs/guides/binary/buffer-to-readablestream/index.md)
- [Convert a Buffer to a string](bun/docs/guides/binary/buffer-to-string/index.md)
- [Convert a Buffer to a Uint8Array](bun/docs/guides/binary/buffer-to-typedarray/index.md)
- [Convert a DataView to a string](bun/docs/guides/binary/dataview-to-string/index.md)
- [Convert a Uint8Array to an ArrayBuffer](bun/docs/guides/binary/typedarray-to-arraybuffer/index.md)
- [Convert a Uint8Array to a Blob](bun/docs/guides/binary/typedarray-to-blob/index.md)
- [Convert a Uint8Array to a Buffer](bun/docs/guides/binary/typedarray-to-buffer/index.md)
- [Convert a Uint8Array to a DataView](bun/docs/guides/binary/typedarray-to-dataview/index.md)
- [Convert a Uint8Array to a ReadableStream](bun/docs/guides/binary/typedarray-to-readablestream/index.md)
- [Convert a Uint8Array to a string](bun/docs/guides/binary/typedarray-to-string/index.md)
- [Deploy a Bun application on AWS Lambda](bun/docs/guides/deployment/aws-lambda/index.md)
- [Deploy a Bun application on DigitalOcean](bun/docs/guides/deployment/digital-ocean/index.md)
- [Deploy a Bun application on Google Cloud Run](bun/docs/guides/deployment/google-cloud-run/index.md)
- [Deploy a Bun application on Railway](bun/docs/guides/deployment/railway/index.md)
- [Deploy a Bun application on Render](bun/docs/guides/deployment/render/index.md)
- [Deploy a Bun application on Vercel](bun/docs/guides/deployment/vercel/index.md)
- [Build an app with Astro and Bun](bun/docs/guides/ecosystem/astro/index.md)
- [Create a Discord bot](bun/docs/guides/ecosystem/discordjs/index.md)
- [Containerize a Bun application with Docker](bun/docs/guides/ecosystem/docker/index.md)
- [Use Drizzle ORM with Bun](bun/docs/guides/ecosystem/drizzle/index.md)
- [Build an HTTP server using Elysia and Bun](bun/docs/guides/ecosystem/elysia/index.md)
- [Build an HTTP server using Express and Bun](bun/docs/guides/ecosystem/express/index.md)
- [Use Gel with Bun](bun/docs/guides/ecosystem/gel/index.md)
- [Build an HTTP server using Hono and Bun](bun/docs/guides/ecosystem/hono/index.md)
- [Read and write data to MongoDB using Mongoose and Bun](bun/docs/guides/ecosystem/mongoose/index.md)
- [Use Neon Postgres through Drizzle ORM](bun/docs/guides/ecosystem/neon-drizzle/index.md)
- [Use Neon's Serverless Postgres with Bun](bun/docs/guides/ecosystem/neon-serverless-postgres/index.md)
- [Build an app with Next.js and Bun](bun/docs/guides/ecosystem/nextjs/index.md)
- [Build an app with Nuxt and Bun](bun/docs/guides/ecosystem/nuxt/index.md)
- [Run Bun as a daemon with PM2](bun/docs/guides/ecosystem/pm2/index.md)
- [Use Prisma with Bun](bun/docs/guides/ecosystem/prisma/index.md)
- [Use Prisma Postgres with Bun](bun/docs/guides/ecosystem/prisma-postgres/index.md)
- [Build an app with Qwik and Bun](bun/docs/guides/ecosystem/qwik/index.md)
- [Build a React app with Bun](bun/docs/guides/ecosystem/react/index.md)
- [Build an app with Remix and Bun](bun/docs/guides/ecosystem/remix/index.md)
- [Add Sentry to a Bun app](bun/docs/guides/ecosystem/sentry/index.md)
- [Build an app with SolidStart and Bun](bun/docs/guides/ecosystem/solidstart/index.md)
- [Server-side render (SSR) a React component](bun/docs/guides/ecosystem/ssr-react/index.md)
- [Build an HTTP server using StricJS and Bun](bun/docs/guides/ecosystem/stric/index.md)
- [Build an app with SvelteKit and Bun](bun/docs/guides/ecosystem/sveltekit/index.md)
- [Run Bun as a daemon with systemd](bun/docs/guides/ecosystem/systemd/index.md)
- [Use TanStack Start with Bun](bun/docs/guides/ecosystem/tanstack-start/index.md)
- [Bun Redis with Upstash](bun/docs/guides/ecosystem/upstash/index.md)
- [Build a frontend using Vite and Bun](bun/docs/guides/ecosystem/vite/index.md)
- [Extract links from a webpage using HTMLRewriter](bun/docs/guides/html-rewriter/extract-links/index.md)
- [Extract social share images and Open Graph tags](bun/docs/guides/html-rewriter/extract-social-meta/index.md)
- [Start a cluster of HTTP servers](bun/docs/guides/http/cluster/index.md)
- [Send an HTTP request using fetch](bun/docs/guides/http/fetch/index.md)
- [fetch with unix domain sockets in Bun](bun/docs/guides/http/fetch-unix/index.md)
- [Upload files via HTTP using FormData](bun/docs/guides/http/file-uploads/index.md)
- [Hot reload an HTTP server](bun/docs/guides/http/hot/index.md)
- [Proxy HTTP requests using fetch()](bun/docs/guides/http/proxy/index.md)
- [Common HTTP server usage](bun/docs/guides/http/server/index.md)
- [Write a simple HTTP server](bun/docs/guides/http/simple/index.md)
- [Server-Sent Events (SSE) with Bun](bun/docs/guides/http/sse/index.md)
- [Stream a file as an HTTP Response](bun/docs/guides/http/stream-file/index.md)
- [Streaming HTTP Server with Async Iterators](bun/docs/guides/http/stream-iterator/index.md)
- [Streaming HTTP Server with Node.js Streams](bun/docs/guides/http/stream-node-streams-in-bun/index.md)
- [Configure TLS on an HTTP server](bun/docs/guides/http/tls/index.md)
- [Guides](bun/docs/guides/index.md)
- [Add a dependency](bun/docs/guides/install/add/index.md)
- [Add a development dependency](bun/docs/guides/install/add-dev/index.md)
- [Add a Git dependency](bun/docs/guides/install/add-git/index.md)
- [Add an optional dependency](bun/docs/guides/install/add-optional/index.md)
- [Add a peer dependency](bun/docs/guides/install/add-peer/index.md)
- [Add a tarball dependency](bun/docs/guides/install/add-tarball/index.md)
- [Using bun install with an Azure Artifacts npm registry](bun/docs/guides/install/azure-artifacts/index.md)
- [Install dependencies with Bun in GitHub Actions](bun/docs/guides/install/cicd/index.md)
- [Override the default npm registry for bun install](bun/docs/guides/install/custom-registry/index.md)
- [Migrate from npm install to bun install](bun/docs/guides/install/from-npm-install-to-bun-install/index.md)
- [Configure git to diff Bun's lockb lockfile](bun/docs/guides/install/git-diff-bun-lockfile/index.md)
- [Using bun install with Artifactory](bun/docs/guides/install/jfrog-artifactory/index.md)
- [Install a package under a different name](bun/docs/guides/install/npm-alias/index.md)
- [Configure a private registry for an organization scope with bun install](bun/docs/guides/install/registry-scope/index.md)
- [Add a trusted dependency](bun/docs/guides/install/trusted/index.md)
- [Configuring a monorepo using workspaces](bun/docs/guides/install/workspaces/index.md)
- [Generate a yarn-compatible lockfile](bun/docs/guides/install/yarnlock/index.md)
- [Parse command-line arguments](bun/docs/guides/process/argv/index.md)
- [Listen for CTRL+C](bun/docs/guides/process/ctrl-c/index.md)
- [Spawn a child process and communicate using IPC](bun/docs/guides/process/ipc/index.md)
- [Get the process uptime in nanoseconds](bun/docs/guides/process/nanoseconds/index.md)
- [Listen to OS signals](bun/docs/guides/process/os-signals/index.md)
- [Spawn a child process](bun/docs/guides/process/spawn/index.md)
- [Read stderr from a child process](bun/docs/guides/process/spawn-stderr/index.md)
- [Read stdout from a child process](bun/docs/guides/process/spawn-stdout/index.md)
- [Read from stdin](bun/docs/guides/process/stdin/index.md)
- [Read a file to an ArrayBuffer](bun/docs/guides/read-file/arraybuffer/index.md)
- [Read a file to a Buffer](bun/docs/guides/read-file/buffer/index.md)
- [Check if a file exists](bun/docs/guides/read-file/exists/index.md)
- [Read a JSON file](bun/docs/guides/read-file/json/index.md)
- [Get the MIME type of a file](bun/docs/guides/read-file/mime/index.md)
- [Read a file as a ReadableStream](bun/docs/guides/read-file/stream/index.md)
- [Read a file as a string](bun/docs/guides/read-file/string/index.md)
- [Read a file to a Uint8Array](bun/docs/guides/read-file/uint8array/index.md)
- [Watch a directory for changes](bun/docs/guides/read-file/watch/index.md)
- [Build-time constants with --define](bun/docs/guides/runtime/build-time-constants/index.md)
- [Install and run Bun in GitHub Actions](bun/docs/guides/runtime/cicd/index.md)
- [Codesign a single-file JavaScript executable on macOS](bun/docs/guides/runtime/codesign-macos-executable/index.md)
- [Define and replace static globals & constants](bun/docs/guides/runtime/define-constant/index.md)
- [Delete directories](bun/docs/guides/runtime/delete-directory/index.md)
- [Delete files](bun/docs/guides/runtime/delete-file/index.md)
- [Inspect memory usage using V8 heap snapshots](bun/docs/guides/runtime/heap-snapshot/index.md)
- [Import a HTML file as text](bun/docs/guides/runtime/import-html/index.md)
- [Import a JSON file](bun/docs/guides/runtime/import-json/index.md)
- [Import a JSON5 file](bun/docs/guides/runtime/import-json5/index.md)
- [Import a TOML file](bun/docs/guides/runtime/import-toml/index.md)
- [Import a YAML file](bun/docs/guides/runtime/import-yaml/index.md)
- [Read environment variables](bun/docs/guides/runtime/read-env/index.md)
- [Set environment variables](bun/docs/guides/runtime/set-env/index.md)
- [Run a Shell Command](bun/docs/guides/runtime/shell/index.md)
- [Set a time zone in Bun](bun/docs/guides/runtime/timezone/index.md)
- [Re-map import paths](bun/docs/guides/runtime/tsconfig-paths/index.md)
- [Install TypeScript declarations for Bun](bun/docs/guides/runtime/typescript/index.md)
- [Debugging Bun with the VS Code extension](bun/docs/guides/runtime/vscode-debugger/index.md)
- [Debugging Bun with the web debugger](bun/docs/guides/runtime/web-debugger/index.md)
- [Convert a Node.js Readable to an ArrayBuffer](bun/docs/guides/streams/node-readable-to-arraybuffer/index.md)
- [Convert a Node.js Readable to a Blob](bun/docs/guides/streams/node-readable-to-blob/index.md)
- [Convert a Node.js Readable to JSON](bun/docs/guides/streams/node-readable-to-json/index.md)
- [Convert a Node.js Readable to a string](bun/docs/guides/streams/node-readable-to-string/index.md)
- [Convert a Node.js Readable to an Uint8Array](bun/docs/guides/streams/node-readable-to-uint8array/index.md)
- [Convert a ReadableStream to an array of chunks](bun/docs/guides/streams/to-array/index.md)
- [Convert a ReadableStream to an ArrayBuffer](bun/docs/guides/streams/to-arraybuffer/index.md)
- [Error loading page](bun/docs/guides/streams/to-blob/index.md)
- [Convert a ReadableStream to a Buffer](bun/docs/guides/streams/to-buffer/index.md)
- [Convert a ReadableStream to JSON](bun/docs/guides/streams/to-json/index.md)
- [Convert a ReadableStream to a string](bun/docs/guides/streams/to-string/index.md)
- [Convert a ReadableStream to a Uint8Array](bun/docs/guides/streams/to-typedarray/index.md)
- [Bail early with the Bun test runner](bun/docs/guides/test/bail/index.md)
- [Selectively run tests concurrently with glob patterns](bun/docs/guides/test/concurrent-test-glob/index.md)
- [Generate code coverage reports with the Bun test runner](bun/docs/guides/test/coverage/index.md)
- [Set a code coverage threshold with the Bun test runner](bun/docs/guides/test/coverage-threshold/index.md)
- [Write browser DOM tests with Bun and happy-dom](bun/docs/guides/test/happy-dom/index.md)
- [Migrate from Jest to Bun's test runner](bun/docs/guides/test/migrate-from-jest/index.md)
- [Set the system time in Bun's test runner](bun/docs/guides/test/mock-clock/index.md)
- [Mock functions in `bun test`](bun/docs/guides/test/mock-functions/index.md)
- [Re-run tests multiple times with the Bun test runner](bun/docs/guides/test/rerun-each/index.md)
- [Run your tests with the Bun test runner](bun/docs/guides/test/run-tests/index.md)
- [Skip tests with the Bun test runner](bun/docs/guides/test/skip-tests/index.md)
- [Use snapshot testing in `bun test`](bun/docs/guides/test/snapshot/index.md)
- [Spy on methods in `bun test`](bun/docs/guides/test/spy-on/index.md)
- [import, require, and test Svelte components with bun test](bun/docs/guides/test/svelte-test/index.md)
- [Using Testing Library with Bun](bun/docs/guides/test/testing-library/index.md)
- [Set a per-test timeout with the Bun test runner](bun/docs/guides/test/timeout/index.md)
- [Mark a test as a \"todo\" with the Bun test runner](bun/docs/guides/test/todo-tests/index.md)
- [Update snapshots in `bun test`](bun/docs/guides/test/update-snapshots/index.md)
- [Run tests in watch mode with Bun](bun/docs/guides/test/watch-mode/index.md)
- [Encode and decode base64 strings](bun/docs/guides/util/base64/index.md)
- [Check if two objects are deeply equal](bun/docs/guides/util/deep-equals/index.md)
- [Compress and decompress data with DEFLATE](bun/docs/guides/util/deflate/index.md)
- [Detect when code is executed with Bun](bun/docs/guides/util/detect-bun/index.md)
- [Check if the current file is the entrypoint](bun/docs/guides/util/entrypoint/index.md)
- [Escape an HTML string](bun/docs/guides/util/escape-html/index.md)
- [Convert a file URL to an absolute path](bun/docs/guides/util/file-url-to-path/index.md)
- [Compress and decompress data with gzip](bun/docs/guides/util/gzip/index.md)
- [Hash a password](bun/docs/guides/util/hash-a-password/index.md)
- [Get the directory of the current file](bun/docs/guides/util/import-meta-dir/index.md)
- [Get the file name of the current file](bun/docs/guides/util/import-meta-file/index.md)
- [Get the absolute path of the current file](bun/docs/guides/util/import-meta-path/index.md)
- [Generate a UUID](bun/docs/guides/util/javascript-uuid/index.md)
- [Get the absolute path to the current entrypoint](bun/docs/guides/util/main/index.md)
- [Convert an absolute path to a file URL](bun/docs/guides/util/path-to-file-url/index.md)
- [Sleep for a fixed number of milliseconds](bun/docs/guides/util/sleep/index.md)
- [Upgrade Bun to the latest version](bun/docs/guides/util/upgrade/index.md)
- [Get the current Bun version](bun/docs/guides/util/version/index.md)
- [Get the path to an executable bin file](bun/docs/guides/util/which-path-to-executable-bin/index.md)
- [Enable compression for WebSocket messages](bun/docs/guides/websocket/compression/index.md)
- [Set per-socket contextual data on a WebSocket](bun/docs/guides/websocket/context/index.md)
- [Build a publish-subscribe WebSocket server](bun/docs/guides/websocket/pubsub/index.md)
- [Build a simple WebSocket server](bun/docs/guides/websocket/simple/index.md)
- [Append content to a file](bun/docs/guides/write-file/append/index.md)
- [Write a string to a file](bun/docs/guides/write-file/basic/index.md)
- [Write a Blob to a file](bun/docs/guides/write-file/blob/index.md)
- [Write a file to stdout](bun/docs/guides/write-file/cat/index.md)
- [Copy a file to another location](bun/docs/guides/write-file/file-cp/index.md)
- [Write a file incrementally](bun/docs/guides/write-file/filesink/index.md)
- [Write a Response to a file](bun/docs/guides/write-file/response/index.md)
- [Write to stdout](bun/docs/guides/write-file/stdout/index.md)
- [Write a ReadableStream to a file](bun/docs/guides/write-file/stream/index.md)
- [Delete a file](bun/docs/guides/write-file/unlink/index.md)
- [Welcome to Bun](bun/docs/index.md)
- [Installation](bun/docs/installation/index.md)
- [bunx](bun/docs/pm/bunx/index.md)
- [Catalogs](bun/docs/pm/catalogs/index.md)
- [bun add](bun/docs/pm/cli/add/index.md)
- [bun audit](bun/docs/pm/cli/audit/index.md)
- [bun info](bun/docs/pm/cli/info/index.md)
- [bun install](bun/docs/pm/cli/install/index.md)
- [bun link](bun/docs/pm/cli/link/index.md)
- [bun outdated](bun/docs/pm/cli/outdated/index.md)
- [bun patch](bun/docs/pm/cli/patch/index.md)
- [bun pm](bun/docs/pm/cli/pm/index.md)
- [bun publish](bun/docs/pm/cli/publish/index.md)
- [bun remove](bun/docs/pm/cli/remove/index.md)
- [bun update](bun/docs/pm/cli/update/index.md)
- [bun why](bun/docs/pm/cli/why/index.md)
- [bun --filter](bun/docs/pm/filter/index.md)
- [Global cache](bun/docs/pm/global-cache/index.md)
- [Isolated installs](bun/docs/pm/isolated-installs/index.md)
- [Lifecycle scripts](bun/docs/pm/lifecycle/index.md)
- [Lockfile](bun/docs/pm/lockfile/index.md)
- [.npmrc support](bun/docs/pm/npmrc/index.md)
- [Overrides and resolutions](bun/docs/pm/overrides/index.md)
- [Scopes and registries](bun/docs/pm/scopes-registries/index.md)
- [Security Scanner API](bun/docs/pm/security-scanner-api/index.md)
- [Workspaces](bun/docs/pm/workspaces/index.md)
- [Benchmarking](bun/docs/project/benchmarking/index.md)
- [Bindgen](bun/docs/project/bindgen/index.md)
- [Building Windows](bun/docs/project/building-windows/index.md)
- [Contributing](bun/docs/project/contributing/index.md)
- [License](bun/docs/project/license/index.md)
- [Roadmap](bun/docs/project/roadmap/index.md)
- [Quickstart](bun/docs/quickstart/index.md)
- [Archive](bun/docs/runtime/archive/index.md)
- [Auto-install](bun/docs/runtime/auto-install/index.md)
- [Binary Data](bun/docs/runtime/binary-data/index.md)
- [Bun APIs](bun/docs/runtime/bun-apis/index.md)
- [bunfig.toml](bun/docs/runtime/bunfig/index.md)
- [C Compiler](bun/docs/runtime/c-compiler/index.md)
- [Spawn](bun/docs/runtime/child-process/index.md)
- [Color](bun/docs/runtime/color/index.md)
- [Console](bun/docs/runtime/console/index.md)
- [Cookies](bun/docs/runtime/cookies/index.md)
- [Cron](bun/docs/runtime/cron/index.md)
- [CSRF Protection](bun/docs/runtime/csrf/index.md)
- [Debugging](bun/docs/runtime/debugger/index.md)
- [Environment Variables](bun/docs/runtime/environment-variables/index.md)
- [FFI](bun/docs/runtime/ffi/index.md)
- [File I/O](bun/docs/runtime/file-io/index.md)
- [File System Router](bun/docs/runtime/file-system-router/index.md)
- [File Types](bun/docs/runtime/file-types/index.md)
- [Glob](bun/docs/runtime/glob/index.md)
- [Globals](bun/docs/runtime/globals/index.md)
- [Hashing](bun/docs/runtime/hashing/index.md)
- [HTMLRewriter](bun/docs/runtime/html-rewriter/index.md)
- [Cookies](bun/docs/runtime/http/cookies/index.md)
- [Error Handling](bun/docs/runtime/http/error-handling/index.md)
- [Metrics](bun/docs/runtime/http/metrics/index.md)
- [Routing](bun/docs/runtime/http/routing/index.md)
- [Server](bun/docs/runtime/http/server/index.md)
- [TLS](bun/docs/runtime/http/tls/index.md)
- [WebSockets](bun/docs/runtime/http/websockets/index.md)
- [Bun Runtime](bun/docs/runtime/index.md)
- [JSON5](bun/docs/runtime/json5/index.md)
- [JSONL](bun/docs/runtime/jsonl/index.md)
- [JSX](bun/docs/runtime/jsx/index.md)
- [Markdown](bun/docs/runtime/markdown/index.md)
- [Module Resolution](bun/docs/runtime/module-resolution/index.md)
- [DNS](bun/docs/runtime/networking/dns/index.md)
- [Fetch](bun/docs/runtime/networking/fetch/index.md)
- [TCP](bun/docs/runtime/networking/tcp/index.md)
- [UDP](bun/docs/runtime/networking/udp/index.md)
- [Node-API](bun/docs/runtime/node-api/index.md)
- [Node.js Compatibility](bun/docs/runtime/nodejs-compat/index.md)
- [Plugins](bun/docs/runtime/plugins/index.md)
- [Redis](bun/docs/runtime/redis/index.md)
- [REPL](bun/docs/runtime/repl/index.md)
- [S3](bun/docs/runtime/s3/index.md)
- [Secrets](bun/docs/runtime/secrets/index.md)
- [Semver](bun/docs/runtime/semver/index.md)
- [Shell](bun/docs/runtime/shell/index.md)
- [SQL](bun/docs/runtime/sql/index.md)
- [SQLite](bun/docs/runtime/sqlite/index.md)
- [Streams](bun/docs/runtime/streams/index.md)
- [bun create](bun/docs/runtime/templating/create/index.md)
- [bun init](bun/docs/runtime/templating/init/index.md)
- [TOML](bun/docs/runtime/toml/index.md)
- [Transpiler](bun/docs/runtime/transpiler/index.md)
- [Utils](bun/docs/runtime/utils/index.md)
- [Watch Mode](bun/docs/runtime/watch-mode/index.md)
- [Web APIs](bun/docs/runtime/web-apis/index.md)
- [Workers](bun/docs/runtime/workers/index.md)
- [YAML](bun/docs/runtime/yaml/index.md)
- [Code coverage](bun/docs/test/code-coverage/index.md)
- [Test configuration](bun/docs/test/configuration/index.md)
- [Dates and times](bun/docs/test/dates-times/index.md)
- [Finding tests](bun/docs/test/discovery/index.md)
- [DOM testing](bun/docs/test/dom/index.md)
- [Test runner](bun/docs/test/index.md)
- [Lifecycle hooks](bun/docs/test/lifecycle/index.md)
- [Mocks](bun/docs/test/mocks/index.md)
- [Test Reporters](bun/docs/test/reporters/index.md)
- [Runtime behavior](bun/docs/test/runtime-behavior/index.md)
- [Snapshots](bun/docs/test/snapshots/index.md)
- [Writing tests](bun/docs/test/writing-tests/index.md)
- [TypeScript](bun/docs/typescript/index.md)
- [TypeScript 6 and 7](bun/docs/typescript-6/index.md)
