node/lib/internal
Joyee Cheung 902a2e41c7 cli: add --require-module/--no-require-module
To replace --experimental-require-module and
--no-experimental-require-module. The experimental
ones are left as legacy aliases.

PR-URL: https://github.com/nodejs/node/pull/60959
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2025-12-08 16:11:49 +00:00
..
assert assert: allow printf-style messages as assertion error 2025-10-17 20:15:17 +00:00
async_local_storage async_hooks: ensure AsyncLocalStore instances work isolated 2025-05-06 18:00:56 +00:00
bootstrap cli: add --require-module/--no-require-module 2025-12-08 16:11:49 +00:00
child_process child_process: fix parsing messages with splitted length field 2025-01-18 19:39:56 +00:00
cluster lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
console console: optimize single-string logging 2025-11-02 23:33:58 +00:00
crypto crypto: fix DOMException name for non-extractable key error 2025-11-30 21:45:27 +00:00
debugger lib: use FastBuffer for empty buffer allocation 2025-11-15 21:39:32 +01:00
dns lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
errors lib: add source map support for assert messages 2025-09-11 10:37:46 +00:00
events lib: remove Symbol[Async]Dispose polyfills 2024-10-07 09:47:44 +00:00
fs lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
http2 http2,zlib: prefer call() over apply() if argument list is not array 2025-12-04 14:36:16 +00:00
inspector inspector: inspect HTTP response body 2025-11-06 22:31:30 +00:00
legacy
main src: build v8 tick processor as built-in source text modules 2025-11-11 02:53:13 +00:00
modules cli: add --require-module/--no-require-module 2025-12-08 16:11:49 +00:00
per_context perf_hooks: fix stack overflow error 2025-10-13 10:05:45 +02:00
perf perf_hooks: fix stack overflow error 2025-10-13 10:05:45 +02:00
process lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
quic lib,test: fix jsdoc comments 2025-11-30 19:14:12 +01:00
readline repl: fix pasting after moving the cursor to the left 2025-11-05 20:36:59 +00:00
repl repl: tab completion targets <class> instead of new <class> 2025-11-20 22:04:36 +00:00
source_map lib: add source map support for assert messages 2025-09-11 10:37:46 +00:00
streams lib: add lint rules for reflective function calls 2025-11-27 10:24:09 +01:00
test
test_runner lib: add lint rules for reflective function calls 2025-11-27 10:24:09 +01:00
tls lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
util util: safely inspect getter errors whose message throws 2025-11-27 11:06:24 +00:00
v8 src: fix timing of snapshot serialize callback 2025-10-28 00:15:55 +00:00
vm lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
watch_mode watch: check parent and child path properly 2025-04-06 09:48:53 +02:00
webstreams stream: fix isErrored/isWritable for WritableStreams 2025-12-03 13:08:34 +00:00
worker lib: replace global SharedArrayBuffer constructor with bound method 2025-11-03 13:23:20 +00:00
abort_controller.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
assert.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
async_context_frame.js lib: use Map primordial for ActiveAsyncContextFrame 2025-04-08 17:51:08 +00:00
async_hooks.js lib: add lint rules for reflective function calls 2025-11-27 10:24:09 +01:00
blob.js lib: fix typo in createBlobReaderStream 2025-10-27 14:14:15 +00:00
blocklist.js net: update net.blocklist to allow file save and file management 2025-07-08 20:37:51 +00:00
buffer.js lib: revert to using default derived class constructors 2025-08-30 14:28:10 +00:00
child_process.js lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
cli_table.js
constants.js
data_url.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
dgram.js
encoding.js src: implement Windows-1252 encoding support and update related tests 2025-12-04 14:23:01 +00:00
error_serdes.js lib: avoid StackOverflow on serializeError 2025-04-29 21:12:29 +00:00
errors.js esm: use sync loading/resolving on non-loader-hook thread 2025-10-31 20:45:10 +00:00
event_target.js lib: implement passive listener behavior per spec 2025-10-04 03:17:35 +00:00
file.js lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
fixed_queue.js lib: ensure no holey array in fixed_queue 2024-09-02 01:42:44 +00:00
freelist.js
freeze_intrinsics.js lib: prefer AsyncIteratorPrototype primordial 2025-07-29 21:54:16 +00:00
heap_utils.js v8: fix missing callback in heap utils destroy 2025-06-30 11:51:40 +00:00
histogram.js perf_hooks: do not expose SafeMap via Histogram wrapper 2025-07-22 16:28:02 +00:00
http.js http: replace startsWith with strict equality 2025-10-30 14:43:31 +00:00
inspector_async_hook.js inspector: skip promise hook in the inspector async hook 2025-02-23 01:07:21 +00:00
inspector_network_tracking.js inspector: add http2 tracking support 2025-08-27 16:25:13 +00:00
js_stream_socket.js
linkedlist.js
locks.js worker: implements nits in Web Locks code 2025-07-31 08:14:57 +00:00
mime.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
navigator.js worker: add web locks api 2025-07-18 07:55:10 -07:00
net.js lib: simplify IPv6 checks in isLoopback() 2025-08-12 11:00:11 +02:00
options.js src: add internal GetOptionsAsFlags 2025-08-16 06:43:49 +00:00
priority_queue.js lib: optimize priority queue 2025-10-04 22:08:00 +02:00
promise_hooks.js
querystring.js
README.md doc: add note about --expose-internals 2024-09-23 20:22:45 +00:00
repl.js repl: extract and standardize history from both repl and interface 2025-05-28 07:38:39 +00:00
socket_list.js
socketaddress.js net: add SocketAddress.parse 2024-12-04 09:29:30 -08:00
stream_base_commons.js stream: relocate the status checking code in the onwritecomplete 2024-09-02 07:29:17 +00:00
timers.js lib: remove redundant destroyHook checks 2025-10-08 12:11:43 +00:00
trace_events_async_hooks.js
tty.js tty: treat empty NO_COLOR same as absent NO_COLOR 2025-06-28 15:26:22 +02:00
url.js url: remove array.reduce usage 2025-11-23 17:13:58 +00:00
util.js src: add internal binding for constructing SharedArrayBuffers 2025-11-03 13:23:20 +00:00
v8_prof_polyfill.js src: build v8 tick processor as built-in source text modules 2025-11-11 02:53:13 +00:00
validators.js meta: enable jsdoc/check-tag-names rule 2025-07-18 09:28:21 +00:00
vm.js lib: prefer call() over apply() if argument list is not array 2025-11-23 08:45:46 +00:00
wasm_web_api.js
watchdog.js
webidl.js lib: prefer symbol to number in webidl type function 2024-11-07 23:21:50 +00:00
webstorage.js lib: throw from localStorage getter on missing storage path 2025-10-31 19:48:29 +00:00
worker.js lib: replace global SharedArrayBuffer constructor with bound method 2025-11-03 13:23:20 +00:00

Internal Modules

The modules located in lib/internal directory are exclusively meant for internal usage within the Node.js core. They are not intended to be accessed via user modules require(). These modules may change at any point in time. Relying on these internal modules outside the core is not supported and can lead to unpredictable behavior.

In certain scenarios, accessing these internal modules for debugging or experimental purposes might be necessary. Node.js provides the --expose-internals flag to expose these modules to userland code. This flag only exists to assist Node.js maintainers with debugging internals. It is not meant for use outside the project.