Skip to content

Commit b061243

Browse files
committed
doc: document process.moduleLoadList
process.moduleLoadList was added in the early days but never documented Fixes: #41233
1 parent 650f51f commit b061243

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

doc/api/process.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2858,6 +2858,31 @@ console.log(memoryUsage.rss());
28582858
// 35655680
28592859
```
28602860
2861+
## `process.moduleLoadList`
2862+
2863+
<!-- YAML
2864+
added: v0.5.3
2865+
-->
2866+
2867+
* Returns: {string\[]}
2868+
2869+
The `process.moduleLoadList` property returns an array of internal bindings and core modules that
2870+
were loaded during the current Node.js process execution.
2871+
2872+
```mjs
2873+
import { moduleLoadList } from 'node:process';
2874+
2875+
console.log(moduleLoadList);
2876+
// ['Internal Binding builtins', 'Internal Binding module_wrap', 'Internal Binding errors', ...]
2877+
```
2878+
2879+
```cjs
2880+
const { moduleLoadList } = require('node:process');
2881+
2882+
console.log(moduleLoadList);
2883+
// ['Internal Binding builtins', 'Internal Binding module_wrap', 'Internal Binding errors', ...]
2884+
```
2885+
28612886
## `process.nextTick(callback[, ...args])`
28622887
28632888
<!-- YAML

0 commit comments

Comments
 (0)