Node.js built-in modules

Modules that come with Node.js itself, such as fs, path, crypto and child_process.

In more detail

They need no installation and are imported by name, optionally with the node: prefix, such as node:fs. Other JavaScript runtimes support some of them for compatibility.

Example

The Next.js Edge runtime supports only a few Node.js modules and relies on Web APIs instead.

Related terms

Taught in

References