Essential Middleware
body-parser: parses request bodies for POST parameters.
builtin express.json() will work for most cases, bodyParser works when raw json text in postman with single quotes while express.json wont
cookie-parser: Used to parse the cookie header and populate req.cookies (essentially provides a convenient method for accessing cookie information).
cors: Enable cross origin stuff globally
morgan: An HTTP request logger middleware for node.
serve-favicon: Node middleware for serving a favicon (this is the icon used to represent the site inside the browser tab, bookmarks, etc.).
Last updated