+ 1

Reading form data in Express.js

I would like to know whether it is common to use the "body-parser" module to read form data in Express.js? Are there other ways to achieve the same?

30th Jan 2021, 5:26 PM
Avinesh
Avinesh - avatar
3 Respuestas
+ 3
For Express 4.16+ body parser implementation is included in Express itself you don't need to install a separate package for it. More details here: https://medium.com/@mmajdanski/express-body-parser-and-why-may-not-need-it-335803cd048c
31st Jan 2021, 4:30 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
I think it is common to use body-parser to read form data jn Express.js
31st Jan 2021, 3:35 PM
Gordon
Gordon - avatar
+ 2
Gordon thanks. 🇮🇳Omkar🕉 thanks for the link. I would have never knew about this since I'm just getting to learn express.
31st Jan 2021, 4:40 PM
Avinesh
Avinesh - avatar