Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a3183fb

Browse filesBrowse files
SunsetTechuilamarco-ippolito
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 6d0b8de commit a3183fb
Copy full SHA for a3183fb

1 file changed

+3Lines changed: 3 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/module.md‎

Copy file name to clipboardExpand all lines: doc/api/module.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.