Node js module is used to keep clean and maintain the code and user can reuse module later. Every module have own function and logic when we create an application in that case 99.9% chances to conflict variable or function. Module base work is good practice each folder keep one module.
There are basically three types of modules:-
- Core Module
- Local Modules
- Third Party Modules
Node Js Core Module: Node js have some pre-defined module when we install node js.
There is some list of the important core modules in Node JS.https://nodejs.org/api/modules.html