Node.js Cheat Sheet

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

The reference material consulted while preparing these pages is listed in the section bibliography.

A single-page, colour-coded summary of the Node.js essentials, written against Node.js 26 (26.10.0, Current; it becomes LTS on 2026-10-28), with the differences of Node.js 24 LTS (24.21.0) and Node.js 22 (22.23.3, Maintenance) called out, and npm 11 as bundled with those lines (versions verified 2026-10-03) — what the runtime is made of, the CLI and REPL, CommonJS and ES modules, npm, the event loop, promises and events, process and error handling, files and streams, built-in SQLite, HTTP and networking, concurrency, the test runner, diagnostics, security, TypeScript type stripping, production, and a strip of what changed since older tutorials — handy for quick memorization or as a downloadable PDF desk reference.

For the full explanation, every option, and additional examples, see the dedicated pages:

Start here — Node.js and its Bibliography.

Concurrency & scaling — Concurrency Models, Worker Threads, Child Processes, and Cluster & Scaling.

TypeScript & tooling — TypeScript in Node.js, and Linting, Formatting & Tooling.

Beyond the basics — Native Add-ons, WebAssembly & FFI.