bun-types 1.2.19-canary.20250708T140633 → 1.2.19-canary.20250710T140803
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bun.d.ts +9 -9
- package/devserver.d.ts +3 -3
- package/docs/api/binary-data.md +1 -1
- package/docs/api/cc.md +1 -1
- package/docs/api/dns.md +3 -3
- package/docs/api/fetch.md +6 -6
- package/docs/api/file-io.md +3 -3
- package/docs/api/globals.md +4 -4
- package/docs/api/http.md +6 -6
- package/docs/api/s3.md +1 -1
- package/docs/api/spawn.md +1 -1
- package/docs/api/utils.md +3 -3
- package/docs/bundler/fullstack.md +2 -2
- package/docs/bundler/index.md +8 -8
- package/docs/bundler/loaders.md +5 -5
- package/docs/bundler/macros.md +1 -1
- package/docs/bundler/plugins.md +1 -1
- package/docs/bundler/vs-esbuild.md +5 -5
- package/docs/cli/bun-create.md +3 -3
- package/docs/cli/bun-install.md +1 -1
- package/docs/cli/bun-upgrade.md +1 -1
- package/docs/cli/filter.md +2 -2
- package/docs/cli/install.md +5 -5
- package/docs/cli/patch-commit.md +1 -1
- package/docs/cli/pm.md +1 -1
- package/docs/cli/publish.md +1 -1
- package/docs/cli/run.md +2 -2
- package/docs/cli/test.md +6 -6
- package/docs/ecosystem/express.md +3 -3
- package/docs/ecosystem/react.md +1 -1
- package/docs/guides/binary/arraybuffer-to-array.md +1 -1
- package/docs/guides/binary/arraybuffer-to-blob.md +1 -1
- package/docs/guides/binary/arraybuffer-to-buffer.md +1 -1
- package/docs/guides/binary/arraybuffer-to-string.md +1 -1
- package/docs/guides/binary/arraybuffer-to-typedarray.md +1 -1
- package/docs/guides/binary/blob-to-arraybuffer.md +1 -1
- package/docs/guides/binary/blob-to-dataview.md +1 -1
- package/docs/guides/binary/blob-to-stream.md +1 -1
- package/docs/guides/binary/blob-to-string.md +1 -1
- package/docs/guides/binary/blob-to-typedarray.md +1 -1
- package/docs/guides/binary/buffer-to-arraybuffer.md +1 -1
- package/docs/guides/binary/buffer-to-blob.md +1 -1
- package/docs/guides/binary/buffer-to-readablestream.md +1 -1
- package/docs/guides/binary/buffer-to-string.md +1 -1
- package/docs/guides/binary/buffer-to-typedarray.md +1 -1
- package/docs/guides/binary/dataview-to-string.md +1 -1
- package/docs/guides/binary/typedarray-to-arraybuffer.md +1 -1
- package/docs/guides/binary/typedarray-to-blob.md +1 -1
- package/docs/guides/binary/typedarray-to-buffer.md +1 -1
- package/docs/guides/binary/typedarray-to-dataview.md +1 -1
- package/docs/guides/binary/typedarray-to-readablestream.md +1 -1
- package/docs/guides/binary/typedarray-to-string.md +1 -1
- package/docs/guides/ecosystem/express.md +1 -1
- package/docs/guides/ecosystem/neon-drizzle.md +1 -1
- package/docs/guides/ecosystem/neon-serverless-postgres.md +1 -1
- package/docs/guides/ecosystem/nuxt.md +1 -1
- package/docs/guides/html-rewriter/extract-links.md +4 -4
- package/docs/guides/html-rewriter/extract-social-meta.md +3 -3
- package/docs/guides/http/fetch.md +2 -2
- package/docs/guides/http/file-uploads.md +1 -1
- package/docs/guides/http/hot.md +1 -1
- package/docs/guides/http/server.md +1 -1
- package/docs/guides/http/simple.md +1 -1
- package/docs/guides/http/stream-file.md +3 -3
- package/docs/guides/http/tls.md +1 -1
- package/docs/guides/install/add-dev.md +1 -1
- package/docs/guides/install/add-git.md +1 -1
- package/docs/guides/install/add-optional.md +1 -1
- package/docs/guides/install/add-peer.md +3 -3
- package/docs/guides/install/add-tarball.md +1 -1
- package/docs/guides/install/add.md +1 -1
- package/docs/guides/install/azure-artifacts.md +1 -1
- package/docs/guides/install/custom-registry.md +2 -2
- package/docs/guides/install/from-npm-install-to-bun-install.md +1 -1
- package/docs/guides/install/git-diff-bun-lockfile.md +1 -1
- package/docs/guides/install/npm-alias.md +1 -1
- package/docs/guides/install/registry-scope.md +3 -3
- package/docs/guides/install/trusted.md +1 -1
- package/docs/guides/install/workspaces.md +1 -1
- package/docs/guides/install/yarnlock.md +2 -2
- package/docs/guides/process/ctrl-c.md +1 -1
- package/docs/guides/process/ipc.md +2 -2
- package/docs/guides/process/nanoseconds.md +1 -1
- package/docs/guides/process/os-signals.md +1 -1
- package/docs/guides/process/spawn-stderr.md +2 -2
- package/docs/guides/process/spawn-stdout.md +2 -2
- package/docs/guides/process/spawn.md +2 -2
- package/docs/guides/process/stdin.md +1 -1
- package/docs/guides/read-file/arraybuffer.md +1 -1
- package/docs/guides/read-file/buffer.md +1 -1
- package/docs/guides/read-file/exists.md +1 -1
- package/docs/guides/read-file/mime.md +1 -1
- package/docs/guides/read-file/stream.md +1 -1
- package/docs/guides/read-file/uint8array.md +1 -1
- package/docs/guides/read-file/watch.md +1 -1
- package/docs/guides/runtime/delete-directory.md +1 -1
- package/docs/guides/runtime/delete-file.md +1 -1
- package/docs/guides/runtime/import-json.md +1 -1
- package/docs/guides/runtime/import-toml.md +1 -1
- package/docs/guides/runtime/read-env.md +1 -1
- package/docs/guides/runtime/set-env.md +1 -1
- package/docs/guides/runtime/shell.md +1 -1
- package/docs/guides/runtime/tsconfig-paths.md +1 -1
- package/docs/guides/runtime/typescript.md +1 -1
- package/docs/guides/runtime/vscode-debugger.md +1 -1
- package/docs/guides/streams/to-array.md +1 -1
- package/docs/guides/streams/to-arraybuffer.md +1 -1
- package/docs/guides/streams/to-blob.md +1 -1
- package/docs/guides/streams/to-buffer.md +1 -1
- package/docs/guides/streams/to-json.md +1 -1
- package/docs/guides/streams/to-string.md +1 -1
- package/docs/guides/streams/to-typedarray.md +1 -1
- package/docs/guides/test/run-tests.md +3 -3
- package/docs/guides/test/snapshot.md +3 -3
- package/docs/guides/test/update-snapshots.md +1 -1
- package/docs/guides/util/base64.md +1 -1
- package/docs/guides/util/deep-equals.md +3 -3
- package/docs/guides/util/deflate.md +1 -1
- package/docs/guides/util/entrypoint.md +2 -2
- package/docs/guides/util/escape-html.md +1 -1
- package/docs/guides/util/file-url-to-path.md +1 -1
- package/docs/guides/util/gzip.md +1 -1
- package/docs/guides/util/hash-a-password.md +1 -1
- package/docs/guides/util/import-meta-dir.md +2 -2
- package/docs/guides/util/import-meta-file.md +2 -2
- package/docs/guides/util/import-meta-path.md +2 -2
- package/docs/guides/util/javascript-uuid.md +1 -1
- package/docs/guides/util/main.md +1 -1
- package/docs/guides/util/path-to-file-url.md +1 -1
- package/docs/guides/util/sleep.md +1 -1
- package/docs/guides/util/version.md +2 -2
- package/docs/guides/util/which-path-to-executable-bin.md +1 -1
- package/docs/guides/websocket/context.md +1 -1
- package/docs/guides/websocket/simple.md +1 -1
- package/docs/guides/write-file/basic.md +2 -2
- package/docs/guides/write-file/blob.md +2 -2
- package/docs/guides/write-file/cat.md +2 -2
- package/docs/guides/write-file/file-cp.md +2 -2
- package/docs/guides/write-file/filesink.md +1 -1
- package/docs/guides/write-file/response.md +3 -3
- package/docs/guides/write-file/stdout.md +2 -2
- package/docs/guides/write-file/stream.md +2 -2
- package/docs/guides/write-file/unlink.md +1 -1
- package/docs/index.md +1 -1
- package/docs/install/lockfile.md +1 -1
- package/docs/install/npmrc.md +4 -4
- package/docs/install/patch.md +2 -2
- package/docs/install/registries.md +1 -1
- package/docs/install/workspaces.md +3 -3
- package/docs/installation.md +8 -8
- package/docs/project/benchmarking.md +1 -1
- package/docs/project/building-windows.md +2 -2
- package/docs/project/contributing.md +2 -2
- package/docs/quickstart.md +1 -1
- package/docs/runtime/autoimport.md +1 -1
- package/docs/runtime/bun-apis.md +36 -36
- package/docs/runtime/debugger.md +4 -4
- package/docs/runtime/env.md +1 -1
- package/docs/runtime/index.md +19 -19
- package/docs/runtime/jsx.md +1 -1
- package/docs/runtime/loaders.md +3 -3
- package/docs/runtime/nodejs-apis.md +4 -4
- package/docs/runtime/plugins.md +5 -5
- package/docs/runtime/typescript.md +1 -1
- package/docs/test/dom.md +1 -1
- package/package.json +2 -2
- package/shell.d.ts +2 -2
|
@@ -4,7 +4,7 @@ name: Set per-socket contextual data on a WebSocket
|
|
|
4
4
|
|
|
5
5
|
When building a WebSocket server, it's typically necessary to store some identifying information or context associated with each connected client.
|
|
6
6
|
|
|
7
|
-
With [Bun.serve()](https://bun.
|
|
7
|
+
With [Bun.serve()](https://bun.com/docs/api/websockets#contextual-data), this "contextual data" is set when the connection is initially upgraded by passing a `data` parameter in the `server.upgrade()` call.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
Bun.serve<{ socketId: number }>({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: Build a simple WebSocket server
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
Start a simple WebSocket server using [`Bun.serve`](https://bun.
|
|
5
|
+
Start a simple WebSocket server using [`Bun.serve`](https://bun.com/docs/api/http).
|
|
6
6
|
|
|
7
7
|
Inside `fetch`, we attempt to upgrade incoming `ws:` or `wss:` requests to WebSocket connections.
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ name: Write a string to a file
|
|
|
4
4
|
|
|
5
5
|
This code snippet writes a string to disk at a particular _absolute path_.
|
|
6
6
|
|
|
7
|
-
It uses the fast [`Bun.write()`](https://bun.
|
|
7
|
+
It uses the fast [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write) API to efficiently write data to disk. The first argument is a _destination_; the second is the _data_ to write.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
const path = "/path/to/file.txt";
|
|
@@ -41,4 +41,4 @@ const bytes = await Bun.write(path, "Lorem ipsum");
|
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
See [Docs > API > File I/O](https://bun.
|
|
44
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -4,7 +4,7 @@ name: Write a Blob to a file
|
|
|
4
4
|
|
|
5
5
|
This code snippet writes a `Blob` to disk at a particular path.
|
|
6
6
|
|
|
7
|
-
It uses the fast [`Bun.write()`](https://bun.
|
|
7
|
+
It uses the fast [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write) API to efficiently write data to disk. The first argument is a _destination_, like an absolute path or `BunFile` instance. The second argument is the _data_ to write.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
const path = "/path/to/file.txt";
|
|
@@ -25,4 +25,4 @@ await Bun.write(path, data);
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
See [Docs > API > File I/O](https://bun.
|
|
28
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: Write a file to stdout
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
Bun exposes `stdout` as a `BunFile` with the `Bun.stdout` property. This can be used as a destination for [`Bun.write()`](https://bun.
|
|
5
|
+
Bun exposes `stdout` as a `BunFile` with the `Bun.stdout` property. This can be used as a destination for [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write).
|
|
6
6
|
|
|
7
7
|
This code writes a file to `stdout` similar to the `cat` command in Unix.
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ await Bun.write(Bun.stdout, file);
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
See [Docs > API > File I/O](https://bun.
|
|
17
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -4,7 +4,7 @@ name: Copy a file to another location
|
|
|
4
4
|
|
|
5
5
|
This code snippet copies a file to another location on disk.
|
|
6
6
|
|
|
7
|
-
It uses the fast [`Bun.write()`](https://bun.
|
|
7
|
+
It uses the fast [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write) API to efficiently write data to disk. The first argument is a _destination_, like an absolute path or `BunFile` instance. The second argument is the _data_ to write.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
const file = Bun.file("/path/to/original.txt");
|
|
@@ -13,4 +13,4 @@ await Bun.write("/path/to/copy.txt", file);
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
See [Docs > API > File I/O](https://bun.
|
|
16
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -4,14 +4,14 @@ name: Write a Response to a file
|
|
|
4
4
|
|
|
5
5
|
This code snippet writes a `Response` to disk at a particular path. Bun will consume the `Response` body according to its `Content-Type` header.
|
|
6
6
|
|
|
7
|
-
It uses the fast [`Bun.write()`](https://bun.
|
|
7
|
+
It uses the fast [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write) API to efficiently write data to disk. The first argument is a _destination_, like an absolute path or `BunFile` instance. The second argument is the _data_ to write.
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
|
-
const result = await fetch("https://bun.
|
|
10
|
+
const result = await fetch("https://bun.com");
|
|
11
11
|
const path = "./file.txt";
|
|
12
12
|
await Bun.write(path, result);
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
See [Docs > API > File I/O](https://bun.
|
|
17
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -10,7 +10,7 @@ console.log("Lorem ipsum");
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
For more advanced use cases, Bun exposes `stdout` as a `BunFile` via the `Bun.stdout` property. This can be used as a destination for [`Bun.write()`](https://bun.
|
|
13
|
+
For more advanced use cases, Bun exposes `stdout` as a `BunFile` via the `Bun.stdout` property. This can be used as a destination for [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write).
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
await Bun.write(Bun.stdout, "Lorem ipsum");
|
|
@@ -18,4 +18,4 @@ await Bun.write(Bun.stdout, "Lorem ipsum");
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
See [Docs > API > File I/O](https://bun.
|
|
21
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: Write a ReadableStream to a file
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
To write a `ReadableStream` to disk, first create a `Response` instance from the stream. This `Response` can then be written to disk using [`Bun.write()`](https://bun.
|
|
5
|
+
To write a `ReadableStream` to disk, first create a `Response` instance from the stream. This `Response` can then be written to disk using [`Bun.write()`](https://bun.com/docs/api/file-io#writing-files-bun-write).
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
8
|
const stream: ReadableStream = ...;
|
|
@@ -14,4 +14,4 @@ await Bun.write(path, response);
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
See [Docs > API > File I/O](https://bun.
|
|
17
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#writing-files-bun-write) for complete documentation of `Bun.write()`.
|
|
@@ -13,4 +13,4 @@ await file.delete();
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
See [Docs > API > File I/O](https://bun.
|
|
16
|
+
See [Docs > API > File I/O](https://bun.com/docs/api/file-io#reading-files-bun-file) for complete documentation of `Bun.file()`.
|
package/docs/index.md
CHANGED
|
@@ -65,7 +65,7 @@ Bun is designed from the ground-up with today's JavaScript ecosystem in mind.
|
|
|
65
65
|
- **TypeScript & JSX support**. You can directly execute `.jsx`, `.ts`, and `.tsx` files; Bun's transpiler converts these to vanilla JavaScript before execution.
|
|
66
66
|
- **ESM & CommonJS compatibility**. The world is moving towards ES modules (ESM), but millions of packages on npm still require CommonJS. Bun recommends ES modules, but supports CommonJS.
|
|
67
67
|
- **Web-standard APIs**. Bun implements standard Web APIs like `fetch`, `WebSocket`, and `ReadableStream`. Bun is powered by the JavaScriptCore engine, which is developed by Apple for Safari, so some APIs like [`Headers`](https://developer.mozilla.org/en-US/docs/Web/API/Headers) and [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) directly use [Safari's implementation](https://github.com/oven-sh/bun/blob/HEAD/src/bun.js/bindings/webcore/JSFetchHeaders.cpp).
|
|
68
|
-
- **Node.js compatibility**. In addition to supporting Node-style module resolution, Bun aims for full compatibility with built-in Node.js globals (`process`, `Buffer`) and modules (`path`, `fs`, `http`, etc.) _This is an ongoing effort that is not complete._ Refer to the [compatibility page](https://bun.
|
|
68
|
+
- **Node.js compatibility**. In addition to supporting Node-style module resolution, Bun aims for full compatibility with built-in Node.js globals (`process`, `Buffer`) and modules (`path`, `fs`, `http`, etc.) _This is an ongoing effort that is not complete._ Refer to the [compatibility page](https://bun.com/docs/runtime/nodejs-apis) for the current status.
|
|
69
69
|
|
|
70
70
|
Bun is more than a runtime. The long-term goal is to be a cohesive, infrastructural toolkit for building apps with JavaScript/TypeScript, including a package manager, transpiler, bundler, script runner, test runner, and more.
|
|
71
71
|
|
package/docs/install/lockfile.md
CHANGED
|
@@ -45,4 +45,4 @@ print = "yarn"
|
|
|
45
45
|
|
|
46
46
|
Bun v1.2 changed the default lockfile format to the text-based `bun.lock`. Existing binary `bun.lockb` lockfiles can be migrated to the new format by running `bun install --save-text-lockfile --frozen-lockfile --lockfile-only` and deleting `bun.lockb`.
|
|
47
47
|
|
|
48
|
-
More information about the new lockfile format can be found on [our blogpost](https://bun.
|
|
48
|
+
More information about the new lockfile format can be found on [our blogpost](https://bun.com/blog/bun-lock-text-lockfile).
|
package/docs/install/npmrc.md
CHANGED
|
@@ -2,7 +2,7 @@ Bun supports loading configuration options from [`.npmrc`](https://docs.npmjs.co
|
|
|
2
2
|
|
|
3
3
|
{% callout %}
|
|
4
4
|
|
|
5
|
-
**NOTE**: We recommend migrating your `.npmrc` file to Bun's [`bunfig.toml`](https://bun.
|
|
5
|
+
**NOTE**: We recommend migrating your `.npmrc` file to Bun's [`bunfig.toml`](https://bun.com/docs/runtime/bunfig) format, as it provides more flexible options and can let you configure Bun-specific options.
|
|
6
6
|
|
|
7
7
|
{% /callout %}
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ To change it, you can set the `registry` option in `.npmrc`:
|
|
|
18
18
|
registry=http://localhost:4873/
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
The equivalent `bunfig.toml` option is [`install.registry`](https://bun.
|
|
21
|
+
The equivalent `bunfig.toml` option is [`install.registry`](https://bun.com/docs/runtime/bunfig#install-registry):
|
|
22
22
|
|
|
23
23
|
```toml
|
|
24
24
|
install.registry = "http://localhost:4873/"
|
|
@@ -32,7 +32,7 @@ Allows you to set the registry for a specific scope:
|
|
|
32
32
|
@myorg:registry=http://localhost:4873/
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The equivalent `bunfig.toml` option is to add a key in [`install.scopes`](https://bun.
|
|
35
|
+
The equivalent `bunfig.toml` option is to add a key in [`install.scopes`](https://bun.com/docs/runtime/bunfig#install-registry):
|
|
36
36
|
|
|
37
37
|
```toml
|
|
38
38
|
[install.scopes]
|
|
@@ -67,7 +67,7 @@ The following options are supported:
|
|
|
67
67
|
- `_password` (base64 encoded password)
|
|
68
68
|
- `_auth` (base64 encoded username:password, e.g. `btoa(username + ":" + password)`)
|
|
69
69
|
|
|
70
|
-
The equivalent `bunfig.toml` option is to add a key in [`install.scopes`](https://bun.
|
|
70
|
+
The equivalent `bunfig.toml` option is to add a key in [`install.scopes`](https://bun.com/docs/runtime/bunfig#install-registry):
|
|
71
71
|
|
|
72
72
|
```toml
|
|
73
73
|
[install.scopes]
|
package/docs/install/patch.md
CHANGED
|
@@ -7,7 +7,7 @@ Features:
|
|
|
7
7
|
- Generates `.patch` files applied to dependencies in `node_modules` on install
|
|
8
8
|
- `.patch` files can be committed to your repository, reused across multiple installs, projects, and machines
|
|
9
9
|
- `"patchedDependencies"` in `package.json` keeps track of patched packages
|
|
10
|
-
- `bun patch` lets you patch packages in `node_modules/` while preserving the integrity of Bun's [Global Cache](https://bun.
|
|
10
|
+
- `bun patch` lets you patch packages in `node_modules/` while preserving the integrity of Bun's [Global Cache](https://bun.com/docs/install/cache)
|
|
11
11
|
- Test your changes locally before committing them with `bun patch --commit <pkg>`
|
|
12
12
|
- To preserve disk space and keep `bun install` fast, patched packages are committed to the Global Cache and shared across projects where possible
|
|
13
13
|
|
|
@@ -34,7 +34,7 @@ If you forget to do this, you might end up editing the package globally in the c
|
|
|
34
34
|
|
|
35
35
|
#### Step 2. Test your changes locally
|
|
36
36
|
|
|
37
|
-
`bun patch <pkg>` makes it safe to edit the `<pkg>` in `node_modules/` directly, while preserving the integrity of Bun's [Global Cache](https://bun.
|
|
37
|
+
`bun patch <pkg>` makes it safe to edit the `<pkg>` in `node_modules/` directly, while preserving the integrity of Bun's [Global Cache](https://bun.com/docs/install/cache). This works by re-creating an unlinked clone of the package in `node_modules/` and diffing it against the original package in the Global Cache.
|
|
38
38
|
|
|
39
39
|
#### Step 3. Commit your changes
|
|
40
40
|
|
|
@@ -38,7 +38,7 @@ In the root `package.json`, the `"workspaces"` key is used to indicate which sub
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
{% callout %}
|
|
41
|
-
**Glob support** — Bun supports full glob syntax in `"workspaces"` (see [here](https://bun.
|
|
41
|
+
**Glob support** — Bun supports full glob syntax in `"workspaces"` (see [here](https://bun.com/docs/api/glob#supported-glob-patterns) for a comprehensive list of supported syntax), _except_ for exclusions (e.g. `!**/excluded/**`), which are not implemented yet.
|
|
42
42
|
{% /callout %}
|
|
43
43
|
|
|
44
44
|
Each workspace has it's own `package.json`. When referencing other packages in the monorepo, semver or workspace protocols (e.g. `workspace:*`) can be used as the version field in your `package.json`.
|
|
@@ -81,7 +81,7 @@ Workspaces have a couple major benefits.
|
|
|
81
81
|
|
|
82
82
|
- **Code can be split into logical parts.** If one package relies on another, you can simply add it as a dependency in `package.json`. If package `b` depends on `a`, `bun install` will install your local `packages/a` directory into `node_modules` instead of downloading it from the npm registry.
|
|
83
83
|
- **Dependencies can be de-duplicated.** If `a` and `b` share a common dependency, it will be _hoisted_ to the root `node_modules` directory. This reduces redundant disk usage and minimizes "dependency hell" issues associated with having multiple versions of a package installed simultaneously.
|
|
84
|
-
- **Run scripts in multiple packages.** You can use the [`--filter` flag](https://bun.
|
|
84
|
+
- **Run scripts in multiple packages.** You can use the [`--filter` flag](https://bun.com/docs/cli/filter) to easily run `package.json` scripts in multiple packages in your workspace.
|
|
85
85
|
|
|
86
86
|
## Share versions with Catalogs
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ When many packages need the same dependency versions, catalogs let you define
|
|
|
89
89
|
those versions once in the root `package.json` and reference them from your
|
|
90
90
|
workspaces using the `catalog:` protocol. Updating the catalog automatically
|
|
91
91
|
updates every package that references it. See
|
|
92
|
-
[Catalogs](https://bun.
|
|
92
|
+
[Catalogs](https://bun.com/docs/install/catalogs) for details.
|
|
93
93
|
|
|
94
94
|
{% callout %}
|
|
95
95
|
⚡️ **Speed** — Installs are fast, even for big monorepos. Bun installs the [Remix](https://github.com/remix-run/remix) monorepo in about `500ms` on Linux.
|
package/docs/installation.md
CHANGED
|
@@ -12,9 +12,9 @@ Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1. Us
|
|
|
12
12
|
{% codetabs %}
|
|
13
13
|
|
|
14
14
|
```bash#macOS/Linux_(curl)
|
|
15
|
-
$ curl -fsSL https://bun.
|
|
15
|
+
$ curl -fsSL https://bun.com/install | bash # for macOS, Linux, and WSL
|
|
16
16
|
# to install a specific version
|
|
17
|
-
$ curl -fsSL https://bun.
|
|
17
|
+
$ curl -fsSL https://bun.com/install | bash -s "bun-v1.2.19-canary.20250710T140803"
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
```bash#npm
|
|
@@ -39,7 +39,7 @@ To install, paste this into a terminal:
|
|
|
39
39
|
{% codetabs %}
|
|
40
40
|
|
|
41
41
|
```powershell#PowerShell/cmd.exe
|
|
42
|
-
> powershell -c "irm bun.
|
|
42
|
+
> powershell -c "irm bun.com/install.ps1|iex"
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
```powershell#npm
|
|
@@ -56,7 +56,7 @@ To install, paste this into a terminal:
|
|
|
56
56
|
Bun requires a minimum of Windows 10 version 1809
|
|
57
57
|
{% /callout %}
|
|
58
58
|
|
|
59
|
-
For support and discussion, please join the [#windows channel on our Discord](http://bun.
|
|
59
|
+
For support and discussion, please join the [#windows channel on our Discord](http://bun.com/discord).
|
|
60
60
|
|
|
61
61
|
## Docker
|
|
62
62
|
|
|
@@ -189,10 +189,10 @@ Since Bun is a single binary, you can install older versions of Bun by re-runnin
|
|
|
189
189
|
|
|
190
190
|
### Installing a specific version of Bun on Linux/Mac
|
|
191
191
|
|
|
192
|
-
To install a specific version of Bun, you can pass the git tag of the version you want to install to the install script, such as `bun-v1.2.0` or `bun-v1.2.19-canary.
|
|
192
|
+
To install a specific version of Bun, you can pass the git tag of the version you want to install to the install script, such as `bun-v1.2.0` or `bun-v1.2.19-canary.20250710T140803`.
|
|
193
193
|
|
|
194
194
|
```sh
|
|
195
|
-
$ curl -fsSL https://bun.
|
|
195
|
+
$ curl -fsSL https://bun.com/install | bash -s "bun-v1.2.19-canary.20250710T140803"
|
|
196
196
|
```
|
|
197
197
|
|
|
198
198
|
### Installing a specific version of Bun on Windows
|
|
@@ -201,7 +201,7 @@ On Windows, you can install a specific version of Bun by passing the version num
|
|
|
201
201
|
|
|
202
202
|
```sh
|
|
203
203
|
# PowerShell:
|
|
204
|
-
$ iex "& {$(irm https://bun.
|
|
204
|
+
$ iex "& {$(irm https://bun.com/install.ps1)} -Version 1.2.19-canary.20250710T140803"
|
|
205
205
|
```
|
|
206
206
|
|
|
207
207
|
## Downloading Bun binaries directly
|
|
@@ -242,7 +242,7 @@ Bun also publishes `darwin-x64-baseline` binaries, but these are just a copy of
|
|
|
242
242
|
Works on macOS x64 & Silicon, Linux x64, Windows Subsystem for Linux.
|
|
243
243
|
|
|
244
244
|
```sh
|
|
245
|
-
$ curl -fsSL https://bun.
|
|
245
|
+
$ curl -fsSL https://bun.com/install | bash
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
Once installed, the binary can upgrade itself.
|
|
@@ -171,7 +171,7 @@ Once imported, you should see something like this:
|
|
|
171
171
|
|
|
172
172
|
{% image alt="Viewing heap snapshot in Safari" src="https://user-images.githubusercontent.com/709451/204429337-b0d8935f-3509-4071-b991-217794d1fb27.png" caption="Viewing heap snapshot in Safari Dev Tools" /%}
|
|
173
173
|
|
|
174
|
-
> The [web debugger](https://bun.
|
|
174
|
+
> The [web debugger](https://bun.com/docs/runtime/debugger#inspect) also offers the timeline feature which allows you to track and examine the memory usage of the running debug session.
|
|
175
175
|
|
|
176
176
|
### Native heap stats
|
|
177
177
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
This document describes the build process for Windows. If you run into problems, please join the [#contributing channel on our Discord](http://bun.
|
|
1
|
+
This document describes the build process for Windows. If you run into problems, please join the [#contributing channel on our Discord](http://bun.com/discord) for help.
|
|
2
2
|
|
|
3
3
|
It is strongly recommended to use [PowerShell 7 (`pwsh.exe`)](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4) instead of the default `powershell.exe`.
|
|
4
4
|
|
|
@@ -47,7 +47,7 @@ By default, running unverified scripts are blocked.
|
|
|
47
47
|
Bun v1.1 or later. We use Bun to run it's own code generators.
|
|
48
48
|
|
|
49
49
|
```ps1
|
|
50
|
-
> irm bun.
|
|
50
|
+
> irm bun.com/install.ps1 | iex
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
[Visual Studio](https://visualstudio.microsoft.com) with the "Desktop Development with C++" workload. While installing, make sure to install Git as well, if Git for Windows is not already installed.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Configuring a development environment for Bun can take 10-30 minutes depending on your internet connection and computer speed. You will need ~10GB of free disk space for the repository and build artifacts.
|
|
2
2
|
|
|
3
|
-
If you are using Windows, please refer to [this guide](https://bun.
|
|
3
|
+
If you are using Windows, please refer to [this guide](https://bun.com/docs/project/building-windows)
|
|
4
4
|
|
|
5
5
|
## Install Dependencies
|
|
6
6
|
|
|
@@ -37,7 +37,7 @@ Before starting, you will need to already have a release build of Bun installed,
|
|
|
37
37
|
{% codetabs %}
|
|
38
38
|
|
|
39
39
|
```bash#Native
|
|
40
|
-
$ curl -fsSL https://bun.
|
|
40
|
+
$ curl -fsSL https://bun.com/install | bash
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
```bash#npm
|
package/docs/quickstart.md
CHANGED
|
@@ -29,7 +29,7 @@ Since our entry point is a `*.ts` file, Bun generates a `tsconfig.json` for you.
|
|
|
29
29
|
|
|
30
30
|
## Run a file
|
|
31
31
|
|
|
32
|
-
Open `index.ts` and paste the following code snippet, which implements a simple HTTP server with [`Bun.serve`](https://bun.
|
|
32
|
+
Open `index.ts` and paste the following code snippet, which implements a simple HTTP server with [`Bun.serve`](https://bun.com/docs/api/http).
|
|
33
33
|
|
|
34
34
|
```ts
|
|
35
35
|
const server = Bun.serve({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
If no `node_modules` directory is found in the working directory or higher, Bun will abandon Node.js-style module resolution in favor of the **Bun module resolution algorithm**.
|
|
2
2
|
|
|
3
|
-
Under Bun-style module resolution, all imported packages are auto-installed on the fly into a [global module cache](https://bun.
|
|
3
|
+
Under Bun-style module resolution, all imported packages are auto-installed on the fly into a [global module cache](https://bun.com/docs/install/cache) during execution (the same cache used by [`bun install`](https://bun.com/docs/cli/install)).
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { foo } from "foo"; // install `latest` version
|
package/docs/runtime/bun-apis.md
CHANGED
|
@@ -20,167 +20,167 @@ Click the link in the right column to jump to the associated documentation.
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
22
|
- HTTP Server
|
|
23
|
-
- [`Bun.serve`](https://bun.
|
|
23
|
+
- [`Bun.serve`](https://bun.com/docs/api/http#bun-serve)
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
27
|
- Shell
|
|
28
|
-
- [`$`](https://bun.
|
|
28
|
+
- [`$`](https://bun.com/docs/runtime/shell)
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
32
32
|
- Bundler
|
|
33
|
-
- [`Bun.build`](https://bun.
|
|
33
|
+
- [`Bun.build`](https://bun.com/docs/bundler)
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
37
37
|
- File I/O
|
|
38
|
-
- [`Bun.file`](https://bun.
|
|
38
|
+
- [`Bun.file`](https://bun.com/docs/api/file-io#reading-files-bun-file), [`Bun.write`](https://bun.com/docs/api/file-io#writing-files-bun-write), `Bun.stdin`, `Bun.stdout`, `Bun.stderr`
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
42
|
- Child Processes
|
|
43
|
-
- [`Bun.spawn`](https://bun.
|
|
43
|
+
- [`Bun.spawn`](https://bun.com/docs/api/spawn#spawn-a-process-bun-spawn), [`Bun.spawnSync`](https://bun.com/docs/api/spawn#blocking-api-bun-spawnsync)
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
47
|
- TCP Sockets
|
|
48
|
-
- [`Bun.listen`](https://bun.
|
|
48
|
+
- [`Bun.listen`](https://bun.com/docs/api/tcp#start-a-server-bun-listen), [`Bun.connect`](https://bun.com/docs/api/tcp#start-a-server-bun-listen)
|
|
49
49
|
|
|
50
50
|
---
|
|
51
51
|
|
|
52
52
|
- UDP Sockets
|
|
53
|
-
- [`Bun.udpSocket`](https://bun.
|
|
53
|
+
- [`Bun.udpSocket`](https://bun.com/docs/api/udp)
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
57
57
|
- WebSockets
|
|
58
|
-
- `new WebSocket()` (client), [`Bun.serve`](https://bun.
|
|
58
|
+
- `new WebSocket()` (client), [`Bun.serve`](https://bun.com/docs/api/websockets) (server)
|
|
59
59
|
|
|
60
60
|
---
|
|
61
61
|
|
|
62
62
|
- Transpiler
|
|
63
|
-
- [`Bun.Transpiler`](https://bun.
|
|
63
|
+
- [`Bun.Transpiler`](https://bun.com/docs/api/transpiler)
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
67
67
|
- Routing
|
|
68
|
-
- [`Bun.FileSystemRouter`](https://bun.
|
|
68
|
+
- [`Bun.FileSystemRouter`](https://bun.com/docs/api/file-system-router)
|
|
69
69
|
|
|
70
70
|
---
|
|
71
71
|
|
|
72
72
|
- Streaming HTML
|
|
73
|
-
- [`HTMLRewriter`](https://bun.
|
|
73
|
+
- [`HTMLRewriter`](https://bun.com/docs/api/html-rewriter)
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
77
77
|
- Hashing
|
|
78
|
-
- [`Bun.password`](https://bun.
|
|
78
|
+
- [`Bun.password`](https://bun.com/docs/api/hashing#bun-password), [`Bun.hash`](https://bun.com/docs/api/hashing#bun-hash), [`Bun.CryptoHasher`](https://bun.com/docs/api/hashing#bun-cryptohasher), `Bun.sha`
|
|
79
79
|
|
|
80
80
|
---
|
|
81
81
|
|
|
82
82
|
- SQLite
|
|
83
|
-
- [`bun:sqlite`](https://bun.
|
|
83
|
+
- [`bun:sqlite`](https://bun.com/docs/api/sqlite)
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
87
|
- PostgreSQL Client
|
|
88
|
-
- [`Bun.SQL`](https://bun.
|
|
88
|
+
- [`Bun.SQL`](https://bun.com/docs/api/sql), `Bun.sql`
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
92
92
|
- Redis (Valkey) Client
|
|
93
|
-
- [`Bun.RedisClient`](https://bun.
|
|
93
|
+
- [`Bun.RedisClient`](https://bun.com/docs/api/redis), `Bun.redis`
|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
97
97
|
- FFI (Foreign Function Interface)
|
|
98
|
-
- [`bun:ffi`](https://bun.
|
|
98
|
+
- [`bun:ffi`](https://bun.com/docs/api/ffi)
|
|
99
99
|
|
|
100
100
|
---
|
|
101
101
|
|
|
102
102
|
- DNS
|
|
103
|
-
- [`Bun.dns.lookup`](https://bun.
|
|
103
|
+
- [`Bun.dns.lookup`](https://bun.com/docs/api/dns), `Bun.dns.prefetch`, `Bun.dns.getCacheStats`
|
|
104
104
|
|
|
105
105
|
---
|
|
106
106
|
|
|
107
107
|
- Testing
|
|
108
|
-
- [`bun:test`](https://bun.
|
|
108
|
+
- [`bun:test`](https://bun.com/docs/cli/test)
|
|
109
109
|
|
|
110
110
|
---
|
|
111
111
|
|
|
112
112
|
- Workers
|
|
113
|
-
- [`new Worker()`](https://bun.
|
|
113
|
+
- [`new Worker()`](https://bun.com/docs/api/workers)
|
|
114
114
|
|
|
115
115
|
---
|
|
116
116
|
|
|
117
117
|
- Module Loaders
|
|
118
|
-
- [`Bun.plugin`](https://bun.
|
|
118
|
+
- [`Bun.plugin`](https://bun.com/docs/bundler/plugins)
|
|
119
119
|
|
|
120
120
|
---
|
|
121
121
|
|
|
122
122
|
- Glob
|
|
123
|
-
- [`Bun.Glob`](https://bun.
|
|
123
|
+
- [`Bun.Glob`](https://bun.com/docs/api/glob)
|
|
124
124
|
|
|
125
125
|
---
|
|
126
126
|
|
|
127
127
|
- Cookies
|
|
128
|
-
- [`Bun.Cookie`](https://bun.
|
|
128
|
+
- [`Bun.Cookie`](https://bun.com/docs/api/cookie), [`Bun.CookieMap`](https://bun.com/docs/api/cookie)
|
|
129
129
|
|
|
130
130
|
---
|
|
131
131
|
|
|
132
132
|
- Node-API
|
|
133
|
-
- [`Node-API`](https://bun.
|
|
133
|
+
- [`Node-API`](https://bun.com/docs/api/node-api)
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
137
137
|
- `import.meta`
|
|
138
|
-
- [`import.meta`](https://bun.
|
|
138
|
+
- [`import.meta`](https://bun.com/docs/api/import-meta)
|
|
139
139
|
|
|
140
140
|
---
|
|
141
141
|
|
|
142
142
|
- Utilities
|
|
143
|
-
- [`Bun.version`](https://bun.
|
|
143
|
+
- [`Bun.version`](https://bun.com/docs/api/utils#bun-version), [`Bun.revision`](https://bun.com/docs/api/utils#bun-revision), [`Bun.env`](https://bun.com/docs/api/utils#bun-env), [`Bun.main`](https://bun.com/docs/api/utils#bun-main)
|
|
144
144
|
|
|
145
145
|
---
|
|
146
146
|
|
|
147
147
|
- Sleep & Timing
|
|
148
|
-
- [`Bun.sleep()`](https://bun.
|
|
148
|
+
- [`Bun.sleep()`](https://bun.com/docs/api/utils#bun-sleep), [`Bun.sleepSync()`](https://bun.com/docs/api/utils#bun-sleepsync), [`Bun.nanoseconds()`](https://bun.com/docs/api/utils#bun-nanoseconds)
|
|
149
149
|
|
|
150
150
|
---
|
|
151
151
|
|
|
152
152
|
- Random & UUID
|
|
153
|
-
- [`Bun.randomUUIDv7()`](https://bun.
|
|
153
|
+
- [`Bun.randomUUIDv7()`](https://bun.com/docs/api/utils#bun-randomuuidv7)
|
|
154
154
|
|
|
155
155
|
---
|
|
156
156
|
|
|
157
157
|
- System & Environment
|
|
158
|
-
- [`Bun.which()`](https://bun.
|
|
158
|
+
- [`Bun.which()`](https://bun.com/docs/api/utils#bun-which)
|
|
159
159
|
|
|
160
160
|
---
|
|
161
161
|
|
|
162
162
|
- Comparison & Inspection
|
|
163
|
-
- [`Bun.peek()`](https://bun.
|
|
163
|
+
- [`Bun.peek()`](https://bun.com/docs/api/utils#bun-peek), [`Bun.deepEquals()`](https://bun.com/docs/api/utils#bun-deepequals), `Bun.deepMatch`, [`Bun.inspect()`](https://bun.com/docs/api/utils#bun-inspect)
|
|
164
164
|
|
|
165
165
|
---
|
|
166
166
|
|
|
167
167
|
- String & Text Processing
|
|
168
|
-
- [`Bun.escapeHTML()`](https://bun.
|
|
168
|
+
- [`Bun.escapeHTML()`](https://bun.com/docs/api/utils#bun-escapehtml), [`Bun.stringWidth()`](https://bun.com/docs/api/utils#bun-stringwidth), `Bun.indexOfLine`
|
|
169
169
|
|
|
170
170
|
---
|
|
171
171
|
|
|
172
172
|
- URL & Path Utilities
|
|
173
|
-
- [`Bun.fileURLToPath()`](https://bun.
|
|
173
|
+
- [`Bun.fileURLToPath()`](https://bun.com/docs/api/utils#bun-fileurltopath), [`Bun.pathToFileURL()`](https://bun.com/docs/api/utils#bun-pathtofileurl)
|
|
174
174
|
|
|
175
175
|
---
|
|
176
176
|
|
|
177
177
|
- Compression
|
|
178
|
-
- [`Bun.gzipSync()`](https://bun.
|
|
178
|
+
- [`Bun.gzipSync()`](https://bun.com/docs/api/utils#bun-gzipsync), [`Bun.gunzipSync()`](https://bun.com/docs/api/utils#bun-gunzipsync), [`Bun.deflateSync()`](https://bun.com/docs/api/utils#bun-deflatesync), [`Bun.inflateSync()`](https://bun.com/docs/api/utils#bun-inflatesync), `Bun.zstdCompressSync()`, `Bun.zstdDecompressSync()`, `Bun.zstdCompress()`, `Bun.zstdDecompress()`
|
|
179
179
|
|
|
180
180
|
---
|
|
181
181
|
|
|
182
182
|
- Stream Processing
|
|
183
|
-
- [`Bun.readableStreamTo*()`](https://bun.
|
|
183
|
+
- [`Bun.readableStreamTo*()`](https://bun.com/docs/api/utils#bun-readablestreamto), `Bun.readableStreamToBytes()`, `Bun.readableStreamToBlob()`, `Bun.readableStreamToFormData()`, `Bun.readableStreamToJSON()`, `Bun.readableStreamToArray()`
|
|
184
184
|
|
|
185
185
|
---
|
|
186
186
|
|
|
@@ -190,17 +190,17 @@ Click the link in the right column to jump to the associated documentation.
|
|
|
190
190
|
---
|
|
191
191
|
|
|
192
192
|
- Module Resolution
|
|
193
|
-
- [`Bun.resolveSync()`](https://bun.
|
|
193
|
+
- [`Bun.resolveSync()`](https://bun.com/docs/api/utils#bun-resolvesync)
|
|
194
194
|
|
|
195
195
|
---
|
|
196
196
|
|
|
197
197
|
- Parsing & Formatting
|
|
198
|
-
- [`Bun.semver`](https://bun.
|
|
198
|
+
- [`Bun.semver`](https://bun.com/docs/api/semver), `Bun.TOML.parse`, [`Bun.color`](https://bun.com/docs/api/color)
|
|
199
199
|
|
|
200
200
|
---
|
|
201
201
|
|
|
202
202
|
- Low-level / Internals
|
|
203
|
-
- `Bun.mmap`, `Bun.gc`, `Bun.generateHeapSnapshot`, [`bun:jsc`](https://bun.
|
|
203
|
+
- `Bun.mmap`, `Bun.gc`, `Bun.generateHeapSnapshot`, [`bun:jsc`](https://bun.com/docs/api/bun-jsc)
|
|
204
204
|
|
|
205
205
|
---
|
|
206
206
|
|