External middleware

The Express core is minimal, yet the team behind it provides various predefined middleware to handle common web development features. These types of middleware vary in size and functionality and extend Express to provide a better framework support. The popular Express middleware are as follows:

  • morgan: This is an HTTP request logger middleware.
  • body-parser: This is a body-parsing middleware that is used to parse the request body, and it supports various request types.
  • method-override: This is a middleware that provides HTTP verb support such as PUT or DELETE in places where the client doesn't support it.
  • compression: This is a compression middleware that is used to compress the response data using gzip/deflate.
  • express.static: This ...

Get Web Application Development with MEAN now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.