From the course: Advanced Express

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Important Express middleware

Important Express middleware

From the course: Advanced Express

Start my 1-month free trial

Important Express middleware

- [Instructor] Express gets most of its power through middlewares that can be plugged into the request live site to modify data or change the flow of an application. Let's look at a few popular ones. They're also documented on the Express website. Some are provided by the Express team, some are projects on its own. First of all, we have body-parser. We need it to parse form data into request.body. Any project that has a regular form in it, needs that. Then we have compression and we will cover that in the last chapter. It lets us compress HTTP responses. We have cookie-parser, we also will cover that in this course. It's needed to parse cookie information from request headers. Then we have multer. We will cover that as well. Multer lets you handle multipart form data, and you always have that when a form contains a file. Serve-favicon is also very frequently used to serve favicons. Session, we will cover that in this course, as well. It is, of course, important for all the session…

Contents