GeezerVison is showing github.com — doc: add info about prefix-only modules to `module.builtinModules` · nodejs/node@86fa46d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
|
28 | 28 | A list of the names of all modules provided by Node.js. Can be used to verify |
29 | 29 | if a module is maintained by a third party or not. |
30 | 30 |
|
| 31 | +Note: the list doesn't contain [prefix-only modules][] like `node:test`. |
| 32 | + |
31 | 33 | `module` in this context isn't the same object that's provided |
32 | 34 | by the [module wrapper][]. To access it, require the `Module` module: |
33 | 35 |
|
@@ -1071,6 +1073,7 @@ returned object contains the following keys: |
1071 | 1073 | [hooks]: #customization-hooks |
1072 | 1074 | [load hook]: #loadurl-context-nextload |
1073 | 1075 | [module wrapper]: modules.md#the-module-wrapper |
| 1076 | +[prefix-only modules]: modules.md#built-in-modules-with-mandatory-node-prefix |
1074 | 1077 | [realm]: https://tc39.es/ecma262/#realm |
1075 | 1078 | [source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx |
1076 | 1079 | [transferrable objects]: worker_threads.md#portpostmessagevalue-transferlist |