Express.js
A minimal Node.js web framework.
Express is a minimal Node.js web framework that exposes the HTTP server as a chain of middleware functions, each of which can inspect or modify the request and response, then either call next() or end the response. Routing, body parsing, sessions, cookie handling, and most other features are middleware packages installed separately.
TJ Holowaychuk started Express in 2010 and donated it to the StrongLoop community in 2014; it is now part of the OpenJS Foundation. The middleware abstraction has been so influential that practically every newer Node.js framework (Koa, Fastify, Hapi, NestJS) inherits from or builds on it in some form.
Despite Express's age, it remains one of the most widely used Node.js frameworks. Many production Node.js APIs run on Express either directly or behind a higher-level framework that uses Express's request/response semantics. The minimalism that made it popular in 2010 has aged remarkably well.
Install
npm install express
Authors
- TJ Holowaychuk (creator)
- OpenJS Foundation