From 95e5d479436ec3b0f0707dc43648283bedf6a1f5 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Fri, 14 Mar 2025 15:47:21 +0100 Subject: [PATCH] doc: mark commonjs as legacy --- doc/api/modules.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index cd94950efde855..15312509be1dec 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -2,12 +2,12 @@ -> Stability: 2 - Stable +> Stability: 3 - Legacy: Use [ECMAScript modules][] instead. -CommonJS modules are the original way to package JavaScript code for Node.js. -Node.js also supports the [ECMAScript modules][] standard used by browsers +CommonJS modules are the legacy way to package JavaScript code for Node.js. +Node.js supports the [ECMAScript modules][] standard used by browsers and other JavaScript runtimes. In Node.js, each file is treated as a separate module. For