Skip to content

Commit a3183fb

Browse files
SunsetTechuilamarco-ippolito
authored andcommitted
doc: add info about prefix-only modules to module.builtinModules
PR-URL: #53954 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6d0b8de commit a3183fb

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

@@ -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

0 commit comments

Comments
 (0)