Express.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 Express.js essentials, written against Express 5.3 (5.3.0) and Express 4.22 (4.22.3, maintenance) on Node.js 24 and 26 LTS, with Node.js 18 as the Express 5 minimum (versions verified 2026-10-29) — setup and versions, routing, routers, middleware, body parsing and static files, application settings, the request and response objects, views, errors, APIs and data, security, authentication, testing, production, debugging, 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 — Express.js and its Bibliography.

Static files & views — Serving Static Files and Template Engines & Views.

Errors, debugging & logging — Error Handling and Debugging and Logging.

Testing — Testing.