Skip to content

Commit 86fa46d

Browse files
SunsetTechuilaRafaelGSS
authored andcommitted
doc: add info about prefix-only modules to module.builtinModules
PR-URL: #53954 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5cea7ed commit 86fa46d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/module.md

+3
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

@@ -1071,6 +1073,7 @@ returned object contains the following keys:
10711073
[hooks]: #customization-hooks
10721074
[load hook]: #loadurl-context-nextload
10731075
[module wrapper]: modules.md#the-module-wrapper
1076+
[prefix-only modules]: modules.md#built-in-modules-with-mandatory-node-prefix
10741077
[realm]: https://tc39.es/ecma262/#realm
10751078
[source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx
10761079
[transferrable objects]: worker_threads.md#portpostmessagevalue-transferlist

0 commit comments

Comments
 (0)