From b061243570217323b0b97f1b1aa981e8527bfadf Mon Sep 17 00:00:00 2001 From: Xavier Stouder Date: Sun, 4 Jan 2026 19:17:27 +0100 Subject: [PATCH 1/3] doc: document process.moduleLoadList process.moduleLoadList was added in the early days but never documented Fixes: https://github.com/nodejs/node/issues/41233 --- doc/api/process.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index 04ca0eff9c55d4..380efbe991f2df 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2858,6 +2858,31 @@ 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])` -* Returns: {string\[]} +* Type: {string\[]} The `process.moduleLoadList` property returns an array of internal bindings and core modules that were loaded during the current Node.js process execution. From 108033814ca48e3104be968c576da27afa491520 Mon Sep 17 00:00:00 2001 From: Xavier Stouder Date: Fri, 9 Jan 2026 22:14:03 +0100 Subject: [PATCH 3/3] expose and document loadedModules instead of moduleLoadList --- doc/api/process.md | 16 ++++++++-------- lib/internal/bootstrap/realm.js | 11 +++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 2d8762a7a39b8c..be7261d0d80ea7 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2858,7 +2858,7 @@ console.log(memoryUsage.rss()); // 35655680 ``` -## `process.moduleLoadList` +## `process.loadedModules`