bodyParser() and cookieParser() add HTTP request payload (req.body) and parsed cookie data (req.cookie), respectively. And in our app.js, app.use(logger('dev')); is tirelessly printing in the terminal pretty logs for each request.
- Chapter 2: Using Express.js 4 to Create Node.js Web Apps
- from Practical Node.js: Building Real-World Scalable Web Apps
- Publisher: Apress
- Released: July 2014
Share this highlighthttp://learning.oreilly.com/a/practical-nodejs-building/44296/