diff --git a/doc/api/process.md b/doc/api/process.md index 04ca0eff9c55d4..934b33a5aa024f 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2858,6 +2858,35 @@ console.log(memoryUsage.rss()); // 35655680 ``` +## `process.moduleLoadList` + + + +* Returns: {string\[]} + +The `process.moduleLoadList` property returns an array of internal bindings and core modules that +were loaded during the current Node.js process execution. + +```mjs +import { moduleLoadList } from 'node:process'; + +console.log(moduleLoadList); +// ['Internal Binding builtins', 'Internal Binding module_wrap', 'Internal Binding errors', ...] +``` + +```cjs +const { moduleLoadList } = require('node:process'); + +console.log(moduleLoadList); +// ['Internal Binding builtins', 'Internal Binding module_wrap', 'Internal Binding errors', ...] +``` + ## `process.nextTick(callback[, ...args])`