From bdc75900eec0ec437caad73fb82c17f7ee6161ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Sun, 6 Sep 2026 19:35:25 +0100 Subject: [PATCH] doc: replace `node:modules` documentation header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Renegade334 PR-URL: https://github.com/nodejs/node/pull/65800 Reviewed-By: James M Snell Reviewed-By: Gürgün Dayıoğlu Reviewed-By: Luigi Pinca --- doc/api/module.md | 64 +++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/doc/api/module.md b/doc/api/module.md index 8272042cb1a..272ce94c15b 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -2,19 +2,30 @@ +> Stability: 2 - Stable + + + +The `node:module` module provides utilities for interacting with the Node.js +module system. + +It can be accessed using: + +```mjs +import module from 'node:module'; +``` + +## Class: `Module` + -## The `Module` object +`module` objects in [CommonJS][] modules are instances of this class. -* Type: {Object} +See the CommonJS documentation for [the `module` object][]. -Provides general utility methods when interacting with instances of -`Module`, the [`module`][] variable often seen in [CommonJS][] modules. Accessed -via `import 'node:module'` or `require('node:module')`. - -### `module.builtinModules` +## `module.builtinModules`