Express middleware

The Express middleware modules listed here are maintained by the Expressjs team.

Middleware moduleDescription
body-parserParse HTTP request body.
compressionCompress HTTP responses.
cookie-parserParse cookie header and populate req.cookies. See also cookies.
cookie-sessionEstablish cookie-based sessions.
corsEnable cross-origin resource sharing (CORS) with various options.
errorhandlerDevelopment error-handling/debugging.
method-overrideOverride HTTP methods using header.
morganHTTP request logger.
multerHandle multi-part form data.
response-timeRecord HTTP response time.
serve-faviconServe a favicon.
serve-indexServe directory listing for a given path.
serve-staticServe static files.
sessionEstablish server-based sessions (development only).
timeoutSet a timeout perioHTTP request processing.
vhostCreate virtual domains.

Additional middleware modules

These are some additional popular middleware modules.

This information refers to third-party sites, products, or modules that are not maintained by the Expressjs team. Listing here does not constitute an endorsement or recommendation from the Expressjs project team.
Middleware moduleDescription
helmetHelps secure your apps by setting various HTTP headers.
passportAuthentication using “strategies” such as OAuth, OpenID and many others. See passportjs.org for more information.