diff options
author | 2023-02-25 11:54:29 -0500 | |
---|---|---|
committer | 2023-02-25 10:54:29 -0600 | |
commit | 735d48190d85c25eb21be1c66eee5975bd47955e (patch) | |
tree | c744febcbde099912bda4701a31d40fd9195ea12 | |
parent | a819e3b7230d71e3936d9b43f7aa147ab322366a (diff) | |
download | bun-735d48190d85c25eb21be1c66eee5975bd47955e.tar.gz bun-735d48190d85c25eb21be1c66eee5975bd47955e.tar.zst bun-735d48190d85c25eb21be1c66eee5975bd47955e.zip |
Replace docs/runtime/nodejs with docs/ecosystem/nodejs (#2185)
* Replace docs/runtime/nodejs with docs/ecosystem/nodejs
* Replace a few more usages
-rw-r--r-- | docs/api/file-io.md | 2 | ||||
-rw-r--r-- | docs/api/globals.md | 6 | ||||
-rw-r--r-- | docs/api/http.md | 2 | ||||
-rw-r--r-- | docs/runtime/index.md | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/docs/api/file-io.md b/docs/api/file-io.md index 0f1642ef3..bb16337e0 100644 --- a/docs/api/file-io.md +++ b/docs/api/file-io.md @@ -1,5 +1,5 @@ {% callout %} -**Note** — The `Bun.file` and `Bun.write` APIs documented on this page are heavily optimized and represent the recommended way to perform file-system tasks using Bun. Existing Node.js projects may use Bun's [nearly complete](/docs/runtime/nodejs) implementation of the [`node:fs`](https://nodejs.org/api/fs.html) module. +**Note** — The `Bun.file` and `Bun.write` APIs documented on this page are heavily optimized and represent the recommended way to perform file-system tasks using Bun. Existing Node.js projects may use Bun's [nearly complete](/docs/ecosystem/nodejs) implementation of the [`node:fs`](https://nodejs.org/api/fs.html) module. {% /callout %} Bun provides a set of optimized APIs for reading and writing files. diff --git a/docs/api/globals.md b/docs/api/globals.md index d966c1861..4916f8d50 100644 --- a/docs/api/globals.md +++ b/docs/api/globals.md @@ -34,7 +34,7 @@ Bun implements the following globals. - [`Buffer`](https://nodejs.org/api/buffer.html#class-buffer) - Node.js -- See [Node.js > `Buffer`](/docs/runtime/nodejs#node_buffer) +- See [Node.js > `Buffer`](/docs/ecosystem/nodejs#node_buffer) --- @@ -172,7 +172,7 @@ Bun implements the following globals. - [`global`](https://nodejs.org/api/globals.html#global) - Node.js -- See [Node.js > `global`](/docs/runtime/nodejs#node_global). +- See [Node.js > `global`](/docs/ecosystem/nodejs#node_global). --- @@ -214,7 +214,7 @@ Bun implements the following globals. - [`process`](https://nodejs.org/api/process.html) - Node.js -- See [Node.js > `process`](/docs/runtime/nodejs#node_process) +- See [Node.js > `process`](/docs/ecosystem/nodejs#node_process) --- diff --git a/docs/api/http.md b/docs/api/http.md index 1ef0302cb..4cb55349a 100644 --- a/docs/api/http.md +++ b/docs/api/http.md @@ -1,5 +1,5 @@ {% callout %} -**Note** — This page documents the `Bun.serve` API. This API is heavily optimized and represents the recommended way to build HTTP servers in Bun. Existing Node.js projects may use Bun's [nearly complete](/docs/runtime/nodejs#node_http) implementation of the Node.js [`http`](https://nodejs.org/api/http.html) and [`https`](https://nodejs.org/api/https.html) modules. +**Note** — This page documents the `Bun.serve` API. This API is heavily optimized and represents the recommended way to build HTTP servers in Bun. Existing Node.js projects may use Bun's [nearly complete](/docs/ecosystem/nodejs#node_http) implementation of the Node.js [`http`](https://nodejs.org/api/http.html) and [`https`](https://nodejs.org/api/https.html) modules. {% /callout %} ## Send a request diff --git a/docs/runtime/index.md b/docs/runtime/index.md index 29ea99c0f..6d86c8880 100644 --- a/docs/runtime/index.md +++ b/docs/runtime/index.md @@ -102,7 +102,7 @@ Support for additional file types can be implemented with [Plugins](/docs/runtim ## Node.js compatibility -Long-term, Bun aims for complete Node.js compatibility. Most Node.js packages already work with Bun out of the box, but certain low-level APIs like `dgram` are still unimplemented. Track the current compatibility status at [Runtime > Node.js API](/docs/runtime/nodejs). +Long-term, Bun aims for complete Node.js compatibility. Most Node.js packages already work with Bun out of the box, but certain low-level APIs like `dgram` are still unimplemented. Track the current compatibility status at [Runtime > Node.js API](/docs/ecosystem/nodejs). Bun implements the Node.js module resolution algorithm, so dependencies can still be managed with `package.json`, `node_modules`, and CommonJS-style imports. |