As you know, Node.js provides a very low level HTTP module by default. This is why you need βframeworksβ like Express, etc. - they make it easy to handle common web server functions on other platforms (like Java and PHP).
body-parser will take the body of your request and analyze it for everything you want to receive on the POST / PUT server (JSON, URL, text, raw).
The only problem with body-parser (as far as I know) is that you cannot handle multi-part bodies (which usually load).
cookie-parser will parse the Cookie header and handle the separation and encoding of the cookie descriptor, perhaps even decrypt it!
It all comes down to the fact that you do not need to use these functions, and why Node is excellent.
You can simply ignore them and take care of the server :)
source share