Skip to content

Commit

Permalink
doc: add info about prefix-only modules to module.builtinModules
Browse files Browse the repository at this point in the history
PR-URL: #53954
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
SunsetTechuila authored and marco-ippolito committed Aug 19, 2024
1 parent 6d0b8de commit a3183fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ added:
A list of the names of all modules provided by Node.js. Can be used to verify
if a module is maintained by a third party or not.

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

`module` in this context isn't the same object that's provided
by the [module wrapper][]. To access it, require the `Module` module:

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

0 comments on commit a3183fb

Please sign in to comment.