Skip to main content

Built-ins for Node.jss

Built-ins are the modules that ship with Node.js and need no installation. The fs module reads and writes files, streams process large data in chunks instead of loading it whole, and the http module creates servers and clients. Path, os and events fill in everyday needs.

Stage: Runtime · Part of the Node.js roadmap · Last reviewed 19 November 2026

What to learn in Built-ins

Built-ins interview questions

Why use streams instead of readFile for large files in Node.js?

readFile loads the whole file into memory, which can exhaust memory for big files. A stream reads small chunks and passes them along, so memory use stays flat and output can start before reading finishes. pipeline handles errors and backpressure.

What is backpressure in Node.js streams?

Backpressure is the signal that a writable stream cannot accept data as fast as it is produced. write returns false and the source should pause until the drain event. Using pipe or stream.pipeline does this automatically.

Where Built-ins fits in the Node.js roadmap

Built-ins belongs to the Runtime stage (beginner level), which takes about 22 hours. How Node works.

Back to the full Node.js roadmap