The Node Core Modules

By

A reference to the Node.js core modules that ship with the platform, like fs, http, test, sqlite, crypto, path, events, and stream, and what each one does.

~~~

Node.js has a set of core modules that are part of the platform and come with the Node.js installation.

We have a lot of them. Here are the main ones, as listed in the current Node.js docs (Node 24 LTS and Node 26):

NameDescription
assertprovides a set of assertion functions useful for testing
async_hookstracks the lifetime of asynchronous resources
bufferprovides the ability to handle buffers containing binary data
child_processprovides the ability to spawn child processes
consoleprovides a simple debugging console
clusterallows to split a Node.js process into multiple workers to take advantage of multi-core systems
cryptoprovides cryptographic functionality
diagnostics_channelcreates named channels for diagnostic data
dgramprovides an implementation of UDP Datagram sockets
dnsprovides name resolution and DNS lookups
eventsprovides an API for managing events
fsprovides an API for interacting with the file system
httpprovides an HTTP client/server implementation
http2provides an HTTP/2 client/server implementation
httpsprovides an HTTPS client/server implementation
inspectorprovides an API for the V8 inspector
moduleprovides utilities for the module system (node:module)
netprovides an asynchronous network API
osprovides operating system-related utility methods and properties
pathprovides utilities for working with file and directory paths
perf_hooksto enable the collection of performance metrics
processprovides information about, and control over, the current Node.js process
querystringlegacy utilities for URL query strings; prefer URLSearchParams for new code
readlineprovides an interface for reading data from a Readable stream
replprovides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications
sqliteprovides a built-in SQLite client (still a release candidate in Node 24 and 26)
streaman abstract interface for working with streaming data
string_decoderprovides an API for decoding Buffer objects into strings
testthe built-in test runner
timersprovide functions to schedule functions to be called at some future period of time
tlsprovides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols
trace_eventsprovides access to V8 Trace Event categories
ttyprovides functionality used to perform I/O operations in a text terminal
urlprovides utilities for URL resolution and parsing
utilsupports the needs of Node.js internal APIs, useful for application and module developers as well
v8exposes APIs that are specific to the version of V8 built into the Node.js binary
vmenables compiling and running code within V8 Virtual Machine contexts
wasiprovides an implementation of the WebAssembly System Interface specification
worker_threadsenables the use of threads that execute JavaScript in parallel
zlibprovides compression functionality

Check out my detailed tutorials on

Tagged: Node.js · All topics

Want me to talk about your product? You can sponsor this site.

~~~

Related posts about node: