{"id":13407029,"url":"https://github.com/oven-sh/bun","last_synced_at":"2026-04-01T16:52:09.361Z","repository":{"id":42613606,"uuid":"357728969","full_name":"oven-sh/bun","owner":"oven-sh","description":"Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one","archived":false,"fork":false,"pushed_at":"2025-05-12T01:22:21.000Z","size":256171,"stargazers_count":77982,"open_issues_count":4828,"forks_count":3069,"subscribers_count":580,"default_branch":"main","last_synced_at":"2025-05-12T14:12:32.112Z","etag":null,"topics":["bun","bundler","javascript","javascriptcore","jsx","nodejs","npm","react","transpiler","typescript","zig","ziglang"],"latest_commit_sha":null,"homepage":"https://bun.sh","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oven-sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-14T00:48:17.000Z","updated_at":"2025-05-12T13:40:00.000Z","dependencies_parsed_at":"2025-05-05T12:20:47.361Z","dependency_job_id":"8a810064-7563-495e-82fb-8cfde99e9241","html_url":"https://github.com/oven-sh/bun","commit_stats":{"total_commits":10960,"total_committers":733,"mean_commits":14.95225102319236,"dds":0.3545620437956204,"last_synced_commit":"2283ed098f712c4867f38ffa3eb9a2020b8d3760"},"previous_names":[],"tags_count":231,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oven-sh%2Fbun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oven-sh%2Fbun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oven-sh%2Fbun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oven-sh%2Fbun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oven-sh","download_url":"https://codeload.github.com/oven-sh/bun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253754220,"owners_count":21958842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","bundler","javascript","javascriptcore","jsx","nodejs","npm","react","transpiler","typescript","zig","ziglang"],"created_at":"2024-07-30T19:02:46.378Z","updated_at":"2026-04-01T16:52:09.331Z","avatar_url":"https://github.com/oven-sh.png","language":"Zig","funding_links":[],"categories":["Zig","Rust","Table of Contents","webdev","JavaScript框架","javascript","Essentials","Uncategorized","zig","Applications","目录","Projects","Network \u0026 Web","JS / TS Toolchain","Repos","Runtimes","Programming","Included Software","开发工具\u0026框架","🌐 Web Development - Frontend"],"sub_categories":["Language Package Manager","其他_文本生成、文本对话","Uncategorized","Other","Runtime","Javascript","Acknowledgments"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://bun.sh\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/50282090-adfd-4ddb-9e27-c30753c6b161\" alt=\"Logo\" height=170\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eBun\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://bun.sh/discord\" target=\"_blank\"\u003e\u003cimg height=20 src=\"https://img.shields.io/discord/876711213126520882\" /\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/github/stars/oven-sh/bun\" alt=\"stars\"\u003e\n\u003ca href=\"https://twitter.com/jarredsumner/status/1542824445810642946\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=speed\u0026message=fast\u0026color=success\" alt=\"Bun speed\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://bun.sh/docs\"\u003eDocumentation\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://discord.com/invite/CXdq2DP29u\"\u003eDiscord\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://github.com/oven-sh/bun/issues/new\"\u003eIssues\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://github.com/oven-sh/bun/issues/159\"\u003eRoadmap\u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n### [Read the docs →](https://bun.sh/docs)\n\n## What is Bun?\n\nBun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called `bun`.\n\nAt its core is the _Bun runtime_, a fast JavaScript runtime designed as **a drop-in replacement for Node.js**. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.\n\n```bash\nbun run index.tsx             # TS and JSX supported out-of-the-box\n```\n\nThe `bun` command-line tool also implements a test runner, script runner, and Node.js-compatible package manager. Instead of 1,000 node_modules for development, you only need `bun`. Bun's built-in tools are significantly faster than existing options and usable in existing Node.js projects with little to no changes.\n\n```bash\nbun test                      # run tests\nbun run start                 # run the `start` script in `package.json`\nbun install \u003cpkg\u003e             # install a package\nbunx cowsay 'Hello, world!'   # execute a package\n```\n\n## Install\n\nBun supports Linux (x64 \u0026 arm64), macOS (x64 \u0026 Apple Silicon) and Windows (x64).\n\n\u003e **Linux users** — Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1.\n\n```sh\n# with install script (recommended)\ncurl -fsSL https://bun.sh/install | bash\n\n# on windows\npowershell -c \"irm bun.sh/install.ps1 | iex\"\n\n# with npm\nnpm install -g bun\n\n# with Homebrew\nbrew tap oven-sh/bun\nbrew install bun\n\n# with Docker\ndocker pull oven/bun\ndocker run --rm --init --ulimit memlock=-1:-1 oven/bun\n```\n\n### Upgrade\n\nTo upgrade to the latest version of Bun, run:\n\n```sh\nbun upgrade\n```\n\nBun automatically releases a canary build on every commit to `main`. To upgrade to the latest canary build, run:\n\n```sh\nbun upgrade --canary\n```\n\n[View canary build](https://github.com/oven-sh/bun/releases/tag/canary)\n\n## Quick links\n\n- Intro\n\n  - [What is Bun?](https://bun.sh/docs/index)\n  - [Installation](https://bun.sh/docs/installation)\n  - [Quickstart](https://bun.sh/docs/quickstart)\n  - [TypeScript](https://bun.sh/docs/typescript)\n\n- Templating\n\n  - [`bun init`](https://bun.sh/docs/cli/init)\n  - [`bun create`](https://bun.sh/docs/cli/bun-create)\n\n- Runtime\n\n  - [`bun run`](https://bun.sh/docs/cli/run)\n  - [File types](https://bun.sh/docs/runtime/loaders)\n  - [TypeScript](https://bun.sh/docs/runtime/typescript)\n  - [JSX](https://bun.sh/docs/runtime/jsx)\n  - [Environment variables](https://bun.sh/docs/runtime/env)\n  - [Bun APIs](https://bun.sh/docs/runtime/bun-apis)\n  - [Web APIs](https://bun.sh/docs/runtime/web-apis)\n  - [Node.js compatibility](https://bun.sh/docs/runtime/nodejs-apis)\n  - [Single-file executable](https://bun.sh/docs/bundler/executables)\n  - [Plugins](https://bun.sh/docs/runtime/plugins)\n  - [Watch mode](https://bun.sh/docs/runtime/hot)\n  - [Module resolution](https://bun.sh/docs/runtime/modules)\n  - [Auto-install](https://bun.sh/docs/runtime/autoimport)\n  - [bunfig.toml](https://bun.sh/docs/runtime/bunfig)\n  - [Debugger](https://bun.sh/docs/runtime/debugger)\n  - [Framework API](https://bun.sh/docs/runtime/framework)\n\n- Package manager\n\n  - [`bun install`](https://bun.sh/docs/cli/install)\n  - [`bun add`](https://bun.sh/docs/cli/add)\n  - [`bun remove`](https://bun.sh/docs/cli/remove)\n  - [`bun update`](https://bun.sh/docs/cli/update)\n  - [`bun link`](https://bun.sh/docs/cli/link)\n  - [`bun pm`](https://bun.sh/docs/cli/pm)\n  - [Global cache](https://bun.sh/docs/install/cache)\n  - [Workspaces](https://bun.sh/docs/install/workspaces)\n  - [Lifecycle scripts](https://bun.sh/docs/install/lifecycle)\n  - [Filter](https://bun.sh/docs/cli/filter)\n  - [Lockfile](https://bun.sh/docs/install/lockfile)\n  - [Scopes and registries](https://bun.sh/docs/install/registries)\n  - [Overrides and resolutions](https://bun.sh/docs/install/overrides)\n\n- Bundler\n\n  - [`Bun.build`](https://bun.sh/docs/bundler)\n  - [Loaders](https://bun.sh/docs/bundler/loaders)\n  - [Plugins](https://bun.sh/docs/bundler/plugins)\n  - [Macros](https://bun.sh/docs/bundler/macros)\n  - [vs esbuild](https://bun.sh/docs/bundler/vs-esbuild)\n\n- Test runner\n\n  - [`bun test`](https://bun.sh/docs/cli/test)\n  - [Writing tests](https://bun.sh/docs/test/writing)\n  - [Watch mode](https://bun.sh/docs/test/hot)\n  - [Lifecycle hooks](https://bun.sh/docs/test/lifecycle)\n  - [Mocks](https://bun.sh/docs/test/mocks)\n  - [Snapshots](https://bun.sh/docs/test/snapshots)\n  - [Dates and times](https://bun.sh/docs/test/time)\n  - [DOM testing](https://bun.sh/docs/test/dom)\n  - [Code coverage](https://bun.sh/docs/test/coverage)\n\n- Package runner\n\n  - [`bunx`](https://bun.sh/docs/cli/bunx)\n\n- API\n\n  - [HTTP server](https://bun.sh/docs/api/http)\n  - [WebSockets](https://bun.sh/docs/api/websockets)\n  - [Workers](https://bun.sh/docs/api/workers)\n  - [Binary data](https://bun.sh/docs/api/binary-data)\n  - [Streams](https://bun.sh/docs/api/streams)\n  - [File I/O](https://bun.sh/docs/api/file-io)\n  - [import.meta](https://bun.sh/docs/api/import-meta)\n  - [SQLite](https://bun.sh/docs/api/sqlite)\n  - [FileSystemRouter](https://bun.sh/docs/api/file-system-router)\n  - [TCP sockets](https://bun.sh/docs/api/tcp)\n  - [UDP sockets](https://bun.sh/docs/api/udp)\n  - [Globals](https://bun.sh/docs/api/globals)\n  - [$ Shell](https://bun.sh/docs/runtime/shell)\n  - [Child processes](https://bun.sh/docs/api/spawn)\n  - [Transpiler](https://bun.sh/docs/api/transpiler)\n  - [Hashing](https://bun.sh/docs/api/hashing)\n  - [Console](https://bun.sh/docs/api/console)\n  - [FFI](https://bun.sh/docs/api/ffi)\n  - [HTMLRewriter](https://bun.sh/docs/api/html-rewriter)\n  - [Testing](https://bun.sh/docs/api/test)\n  - [Utils](https://bun.sh/docs/api/utils)\n  - [Node-API](https://bun.sh/docs/api/node-api)\n  - [Glob](https://bun.sh/docs/api/glob)\n  - [Semver](https://bun.sh/docs/api/semver)\n\n- Project\n  - [Roadmap](https://bun.sh/docs/project/roadmap)\n  - [Benchmarking](https://bun.sh/docs/project/benchmarking)\n  - [Contributing](https://bun.sh/docs/project/contributing)\n  - [Building Windows](https://bun.sh/docs/project/building-windows)\n  - [License](https://bun.sh/docs/project/licensing)\n\n## Guides\n\n- Binary\n\n  - [Convert a Blob to a DataView](https://bun.sh/guides/binary/blob-to-dataview)\n  - [Convert a Blob to a ReadableStream](https://bun.sh/guides/binary/blob-to-stream)\n  - [Convert a Blob to a string](https://bun.sh/guides/binary/blob-to-string)\n  - [Convert a Blob to a Uint8Array](https://bun.sh/guides/binary/blob-to-typedarray)\n  - [Convert a Blob to an ArrayBuffer](https://bun.sh/guides/binary/blob-to-arraybuffer)\n  - [Convert a Buffer to a blob](https://bun.sh/guides/binary/buffer-to-blob)\n  - [Convert a Buffer to a ReadableStream](https://bun.sh/guides/binary/buffer-to-readablestream)\n  - [Convert a Buffer to a string](https://bun.sh/guides/binary/buffer-to-string)\n  - [Convert a Buffer to a Uint8Array](https://bun.sh/guides/binary/buffer-to-typedarray)\n  - [Convert a Buffer to an ArrayBuffer](https://bun.sh/guides/binary/buffer-to-arraybuffer)\n  - [Convert a DataView to a string](https://bun.sh/guides/binary/dataview-to-string)\n  - [Convert a Uint8Array to a Blob](https://bun.sh/guides/binary/typedarray-to-blob)\n  - [Convert a Uint8Array to a Buffer](https://bun.sh/guides/binary/typedarray-to-buffer)\n  - [Convert a Uint8Array to a DataView](https://bun.sh/guides/binary/typedarray-to-dataview)\n  - [Convert a Uint8Array to a ReadableStream](https://bun.sh/guides/binary/typedarray-to-readablestream)\n  - [Convert a Uint8Array to a string](https://bun.sh/guides/binary/typedarray-to-string)\n  - [Convert a Uint8Array to an ArrayBuffer](https://bun.sh/guides/binary/typedarray-to-arraybuffer)\n  - [Convert an ArrayBuffer to a Blob](https://bun.sh/guides/binary/arraybuffer-to-blob)\n  - [Convert an ArrayBuffer to a Buffer](https://bun.sh/guides/binary/arraybuffer-to-buffer)\n  - [Convert an ArrayBuffer to a string](https://bun.sh/guides/binary/arraybuffer-to-string)\n  - [Convert an ArrayBuffer to a Uint8Array](https://bun.sh/guides/binary/arraybuffer-to-typedarray)\n  - [Convert an ArrayBuffer to an array of numbers](https://bun.sh/guides/binary/arraybuffer-to-array)\n\n- Ecosystem\n\n  - [Build a frontend using Vite and Bun](https://bun.sh/guides/ecosystem/vite)\n  - [Build an app with Astro and Bun](https://bun.sh/guides/ecosystem/astro)\n  - [Build an app with Next.js and Bun](https://bun.sh/guides/ecosystem/nextjs)\n  - [Build an app with Nuxt and Bun](https://bun.sh/guides/ecosystem/nuxt)\n  - [Build an app with Qwik and Bun](https://bun.sh/guides/ecosystem/qwik)\n  - [Build an app with Remix and Bun](https://bun.sh/guides/ecosystem/remix)\n  - [Build an app with SolidStart and Bun](https://bun.sh/guides/ecosystem/solidstart)\n  - [Build an app with SvelteKit and Bun](https://bun.sh/guides/ecosystem/sveltekit)\n  - [Build an HTTP server using Elysia and Bun](https://bun.sh/guides/ecosystem/elysia)\n  - [Build an HTTP server using Express and Bun](https://bun.sh/guides/ecosystem/express)\n  - [Build an HTTP server using Hono and Bun](https://bun.sh/guides/ecosystem/hono)\n  - [Build an HTTP server using StricJS and Bun](https://bun.sh/guides/ecosystem/stric)\n  - [Containerize a Bun application with Docker](https://bun.sh/guides/ecosystem/docker)\n  - [Create a Discord bot](https://bun.sh/guides/ecosystem/discordjs)\n  - [Deploy a Bun application on Render](https://bun.sh/guides/ecosystem/render)\n  - [Read and write data to MongoDB using Mongoose and Bun](https://bun.sh/guides/ecosystem/mongoose)\n  - [Run Bun as a daemon with PM2](https://bun.sh/guides/ecosystem/pm2)\n  - [Run Bun as a daemon with systemd](https://bun.sh/guides/ecosystem/systemd)\n  - [Server-side render (SSR) a React component](https://bun.sh/guides/ecosystem/ssr-react)\n  - [Use Drizzle ORM with Bun](https://bun.sh/guides/ecosystem/drizzle)\n  - [Use EdgeDB with Bun](https://bun.sh/guides/ecosystem/edgedb)\n  - [Use Neon's Serverless Postgres with Bun](https://bun.sh/guides/ecosystem/neon-serverless-postgres)\n  - [Use Prisma with Bun](https://bun.sh/guides/ecosystem/prisma)\n  - [Use React and JSX](https://bun.sh/guides/ecosystem/react)\n  - [Add Sentry to a Bun app](https://bun.sh/guides/ecosystem/sentry)\n\n- HTTP\n\n  - [Common HTTP server usage](https://bun.sh/guides/http/server)\n  - [Configure TLS on an HTTP server](https://bun.sh/guides/http/tls)\n  - [fetch with unix domain sockets in Bun](https://bun.sh/guides/http/fetch-unix)\n  - [Hot reload an HTTP server](https://bun.sh/guides/http/hot)\n  - [Proxy HTTP requests using fetch()](https://bun.sh/guides/http/proxy)\n  - [Send an HTTP request using fetch](https://bun.sh/guides/http/fetch)\n  - [Start a cluster of HTTP servers](https://bun.sh/guides/http/cluster)\n  - [Stream a file as an HTTP Response](https://bun.sh/guides/http/stream-file)\n  - [Streaming HTTP Server with Async Iterators](https://bun.sh/guides/http/stream-iterator)\n  - [Streaming HTTP Server with Node.js Streams](https://bun.sh/guides/http/stream-node-streams-in-bun)\n  - [Upload files via HTTP using FormData](https://bun.sh/guides/http/file-uploads)\n  - [Write a simple HTTP server](https://bun.sh/guides/http/simple)\n\n- Install\n\n  - [Add a dependency](https://bun.sh/guides/install/add)\n  - [Add a development dependency](https://bun.sh/guides/install/add-dev)\n  - [Add a Git dependency](https://bun.sh/guides/install/add-git)\n  - [Add a peer dependency](https://bun.sh/guides/install/add-peer)\n  - [Add a tarball dependency](https://bun.sh/guides/install/add-tarball)\n  - [Add a trusted dependency](https://bun.sh/guides/install/trusted)\n  - [Add an optional dependency](https://bun.sh/guides/install/add-optional)\n  - [Configure a private registry for an organization scope with bun install](https://bun.sh/guides/install/registry-scope)\n  - [Configure git to diff Bun's lockb lockfile](https://bun.sh/guides/install/git-diff-bun-lockfile)\n  - [Configuring a monorepo using workspaces](https://bun.sh/guides/install/workspaces)\n  - [Generate a human-readable lockfile](https://bun.sh/guides/install/yarnlock)\n  - [Install a package under a different name](https://bun.sh/guides/install/npm-alias)\n  - [Install dependencies with Bun in GitHub Actions](https://bun.sh/guides/install/cicd)\n  - [Override the default npm registry for bun install](https://bun.sh/guides/install/custom-registry)\n  - [Using bun install with an Azure Artifacts npm registry](https://bun.sh/guides/install/azure-artifacts)\n  - [Using bun install with Artifactory](https://bun.sh/guides/install/jfrog-artifactory)\n\n- Process\n\n  - [Get the process uptime in nanoseconds](https://bun.sh/guides/process/nanoseconds)\n  - [Listen for CTRL+C](https://bun.sh/guides/process/ctrl-c)\n  - [Listen to OS signals](https://bun.sh/guides/process/os-signals)\n  - [Parse command-line arguments](https://bun.sh/guides/process/argv)\n  - [Read from stdin](https://bun.sh/guides/process/stdin)\n  - [Read stderr from a child process](https://bun.sh/guides/process/spawn-stderr)\n  - [Read stdout from a child process](https://bun.sh/guides/process/spawn-stdout)\n  - [Spawn a child process](https://bun.sh/guides/process/spawn)\n  - [Spawn a child process and communicate using IPC](https://bun.sh/guides/process/ipc)\n\n- Read file\n\n  - [Check if a file exists](https://bun.sh/guides/read-file/exists)\n  - [Get the MIME type of a file](https://bun.sh/guides/read-file/mime)\n  - [Read a file as a ReadableStream](https://bun.sh/guides/read-file/stream)\n  - [Read a file as a string](https://bun.sh/guides/read-file/string)\n  - [Read a file to a Buffer](https://bun.sh/guides/read-file/buffer)\n  - [Read a file to a Uint8Array](https://bun.sh/guides/read-file/uint8array)\n  - [Read a file to an ArrayBuffer](https://bun.sh/guides/read-file/arraybuffer)\n  - [Read a JSON file](https://bun.sh/guides/read-file/json)\n  - [Watch a directory for changes](https://bun.sh/guides/read-file/watch)\n\n- Runtime\n\n  - [Debugging Bun with the VS Code extension](https://bun.sh/guides/runtime/vscode-debugger)\n  - [Debugging Bun with the web debugger](https://bun.sh/guides/runtime/web-debugger)\n  - [Define and replace static globals \u0026 constants](https://bun.sh/guides/runtime/define-constant)\n  - [Import a JSON file](https://bun.sh/guides/runtime/import-json)\n  - [Import a TOML file](https://bun.sh/guides/runtime/import-toml)\n  - [Import HTML file as text](https://bun.sh/guides/runtime/import-html)\n  - [Install and run Bun in GitHub Actions](https://bun.sh/guides/runtime/cicd)\n  - [Install TypeScript declarations for Bun](https://bun.sh/guides/runtime/typescript)\n  - [Re-map import paths](https://bun.sh/guides/runtime/tsconfig-paths)\n  - [Read environment variables](https://bun.sh/guides/runtime/read-env)\n  - [Run a Shell Command](https://bun.sh/guides/runtime/shell)\n  - [Set a time zone in Bun](https://bun.sh/guides/runtime/timezone)\n  - [Set environment variables](https://bun.sh/guides/runtime/set-env)\n\n- Streams\n\n  - [Convert a Node.js Readable to a Blob](https://bun.sh/guides/streams/node-readable-to-blob)\n  - [Convert a Node.js Readable to a string](https://bun.sh/guides/streams/node-readable-to-string)\n  - [Convert a Node.js Readable to an ArrayBuffer](https://bun.sh/guides/streams/node-readable-to-arraybuffer)\n  - [Convert a Node.js Readable to JSON](https://bun.sh/guides/streams/node-readable-to-json)\n  - [Convert a ReadableStream to a Blob](https://bun.sh/guides/streams/to-blob)\n  - [Convert a ReadableStream to a Buffer](https://bun.sh/guides/streams/to-buffer)\n  - [Convert a ReadableStream to a string](https://bun.sh/guides/streams/to-string)\n  - [Convert a ReadableStream to a Uint8Array](https://bun.sh/guides/streams/to-typedarray)\n  - [Convert a ReadableStream to an array of chunks](https://bun.sh/guides/streams/to-array)\n  - [Convert a ReadableStream to an ArrayBuffer](https://bun.sh/guides/streams/to-arraybuffer)\n  - [Convert a ReadableStream to JSON](https://bun.sh/guides/streams/to-json)\n\n- Test\n\n  - [Bail early with the Bun test runner](https://bun.sh/guides/test/bail)\n  - [Generate code coverage reports with the Bun test runner](https://bun.sh/guides/test/coverage)\n  - [Mark a test as a \"todo\" with the Bun test runner](https://bun.sh/guides/test/todo-tests)\n  - [Migrate from Jest to Bun's test runner](https://bun.sh/guides/test/migrate-from-jest)\n  - [Mock functions in `bun test`](https://bun.sh/guides/test/mock-functions)\n  - [Re-run tests multiple times with the Bun test runner](https://bun.sh/guides/test/rerun-each)\n  - [Run tests in watch mode with Bun](https://bun.sh/guides/test/watch-mode)\n  - [Run your tests with the Bun test runner](https://bun.sh/guides/test/run-tests)\n  - [Set a code coverage threshold with the Bun test runner](https://bun.sh/guides/test/coverage-threshold)\n  - [Set a per-test timeout with the Bun test runner](https://bun.sh/guides/test/timeout)\n  - [Set the system time in Bun's test runner](https://bun.sh/guides/test/mock-clock)\n  - [Skip tests with the Bun test runner](https://bun.sh/guides/test/skip-tests)\n  - [Spy on methods in `bun test`](https://bun.sh/guides/test/spy-on)\n  - [Update snapshots in `bun test`](https://bun.sh/guides/test/update-snapshots)\n  - [Use snapshot testing in `bun test`](https://bun.sh/guides/test/snapshot)\n  - [Write browser DOM tests with Bun and happy-dom](https://bun.sh/guides/test/happy-dom)\n\n- Util\n\n  - [Check if the current file is the entrypoint](https://bun.sh/guides/util/entrypoint)\n  - [Check if two objects are deeply equal](https://bun.sh/guides/util/deep-equals)\n  - [Compress and decompress data with DEFLATE](https://bun.sh/guides/util/deflate)\n  - [Compress and decompress data with gzip](https://bun.sh/guides/util/gzip)\n  - [Convert a file URL to an absolute path](https://bun.sh/guides/util/file-url-to-path)\n  - [Convert an absolute path to a file URL](https://bun.sh/guides/util/path-to-file-url)\n  - [Detect when code is executed with Bun](https://bun.sh/guides/util/detect-bun)\n  - [Encode and decode base64 strings](https://bun.sh/guides/util/base64)\n  - [Escape an HTML string](https://bun.sh/guides/util/escape-html)\n  - [Get the absolute path of the current file](https://bun.sh/guides/util/import-meta-path)\n  - [Get the absolute path to the current entrypoint](https://bun.sh/guides/util/main)\n  - [Get the current Bun version](https://bun.sh/guides/util/version)\n  - [Get the directory of the current file](https://bun.sh/guides/util/import-meta-dir)\n  - [Get the file name of the current file](https://bun.sh/guides/util/import-meta-file)\n  - [Get the path to an executable bin file](https://bun.sh/guides/util/which-path-to-executable-bin)\n  - [Hash a password](https://bun.sh/guides/util/hash-a-password)\n  - [Sleep for a fixed number of milliseconds](https://bun.sh/guides/util/sleep)\n\n- WebSocket\n\n  - [Build a publish-subscribe WebSocket server](https://bun.sh/guides/websocket/pubsub)\n  - [Build a simple WebSocket server](https://bun.sh/guides/websocket/simple)\n  - [Enable compression for WebSocket messages](https://bun.sh/guides/websocket/compression)\n  - [Set per-socket contextual data on a WebSocket](https://bun.sh/guides/websocket/context)\n\n- Write file\n  - [Append content to a file](https://bun.sh/guides/write-file/append)\n  - [Copy a file to another location](https://bun.sh/guides/write-file/file-cp)\n  - [Delete a file](https://bun.sh/guides/write-file/unlink)\n  - [Write a Blob to a file](https://bun.sh/guides/write-file/blob)\n  - [Write a file incrementally](https://bun.sh/guides/write-file/filesink)\n  - [Write a file to stdout](https://bun.sh/guides/write-file/cat)\n  - [Write a ReadableStream to a file](https://bun.sh/guides/write-file/stream)\n  - [Write a Response to a file](https://bun.sh/guides/write-file/response)\n  - [Write a string to a file](https://bun.sh/guides/write-file/basic)\n  - [Write to stdout](https://bun.sh/guides/write-file/stdout)\n\n## Contributing\n\nRefer to the [Project \u003e Contributing](https://bun.sh/docs/project/contributing) guide to start contributing to Bun.\n\n## License\n\nRefer to the [Project \u003e License](https://bun.sh/docs/project/licensing) page for information about Bun's licensing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foven-sh%2Fbun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foven-sh%2Fbun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foven-sh%2Fbun/lists"}