You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/runtime-apis/nodejs/index.mdx
+50-36Lines changed: 50 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,10 @@ When you write a Worker, you may need to import packages from [npm](https://www.
11
11
12
12
Cloudflare Workers provides a subset of Node.js APIs in two forms:
13
13
14
-
1. As built-in APIs provided by the Workers Runtime
14
+
1. As built-in APIs provided by the Workers Runtime. Most of these APIs are
15
+
full implementations of the corresponding Node.js APIs, while a few are
16
+
partially supported or non-functional stubs intended for the APIs to be
17
+
available for import only but not for actual use.
15
18
2. As polyfill shim implementations that [Wrangler](/workers/wrangler/) adds to your Worker's code, allowing it to import the module, but calling API methods will throw errors.
The runtime APIs from Node.js listed below as "🟢 supported" are currently natively supported in the Workers Runtime.
35
+
The runtime APIs from Node.js listed below as "🟢 supported" are currently natively supported in the Workers Runtime. Item listed as "🟡 partially supported" are either only partially implemented or are implemented as non-functional stubs.
33
36
34
37
[Deprecated or experimental APIs from Node.js](https://nodejs.org/docs/latest/api/documentation.html#stability-index), and APIs that do not fit in a serverless context, are not included as part of the list below:
35
38
36
-
| API Name | Natively supported by the Workers Runtime |
|[Inspector](https://nodejs.org/docs/latest/api/inspector.html)| 🟡 partially supported via [Chrome Dev Tools integration](/workers/observability/dev-tools/)|
Unless otherwise specified, native implementations of Node.js APIs in Workers are intended to match the implementation in the [Current release of Node.js](https://github.com/nodejs/release#release-schedule).
0 commit comments