Reading form data in Express.js | Sololearn: Learn to code for FREE!

+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?

1/30/2021 5:26:29 PM

Avinesh

3 Answers

New Answer

+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

+2

I think it is common to use body-parser to read form data jn Express.js

+2

Gordon thanks. 🇮🇳Omkar🕉 thanks for the link. I would have never knew about this since I'm just getting to learn express.