From c621ca5549d7949a9017f2bafde04ffcdd5d0433 Mon Sep 17 00:00:00 2001 From: Renegade334 Date: Fri, 4 Sep 2026 20:13:29 +0200 Subject: [PATCH] doc: replace `node:modules` documentation header Signed-off-by: Renegade334 --- 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 1aac20780c4d..a4f83a812f96 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`