Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a97c80c

Browse filesBrowse files
avivkellertargos
authored andcommitted
doc: add note about --expose-internals
PR-URL: #52861 Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent d4873bc commit a97c80c
Copy full SHA for a97c80c

File tree

Expand file treeCollapse file tree

1 file changed

+11
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-4
lines changed
Open diff view settings
Collapse file

‎lib/internal/README.md‎

Copy file name to clipboard
+11-4Lines changed: 11 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Internal Modules
22

3-
The modules in `lib/internal` are intended for internal use in Node.js core
4-
only, and are not accessible with `require()` from user modules. These modules
5-
can be changed at **any** time. Reliance on these modules outside of core
6-
is **not supported** in any way.
3+
The modules located in `lib/internal` directory are exclusively meant
4+
for internal usage within the Node.js core. They are not intended to
5+
be accessed via user modules `require()`. These modules may change at
6+
any point in time. Relying on these internal modules outside the core
7+
is not supported and can lead to unpredictable behavior.
8+
9+
In certain scenarios, accessing these internal modules for debugging or
10+
experimental purposes might be necessary. Node.js provides the `--expose-internals`
11+
flag to expose these modules to userland code. This flag only exists to
12+
assist Node.js maintainers with debugging internals. It is not meant for
13+
use outside the project.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.