◐ Shell
clean mode source ↗

doc: add info about prefix-only modules to `module.builtinModules` · nodejs/node@a3183fb

Original file line numberDiff line numberDiff line change

@@ -28,6 +28,8 @@ added:

2828

A list of the names of all modules provided by Node.js. Can be used to verify

2929

if a module is maintained by a third party or not.

3030
31+

Note: the list doesn't contain [prefix-only modules][] like `node:test`.

32+
3133

`module` in this context isn't the same object that's provided

3234

by the [module wrapper][]. To access it, require the `Module` module:

3335

@@ -1135,6 +1137,7 @@ returned object contains the following keys:

11351137

[hooks]: #customization-hooks

11361138

[load hook]: #loadurl-context-nextload

11371139

[module wrapper]: modules.md#the-module-wrapper

1140+

[prefix-only modules]: modules.md#built-in-modules-with-mandatory-node-prefix

11381141

[realm]: https://tc39.es/ecma262/#realm

11391142

[source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx

11401143

[transferrable objects]: worker_threads.md#portpostmessagevalue-transferlist