What are Node Modules
In this article, let’s learn about what are node modules. A module is an encapsulated and reusable chunk of code that has its own context. In node JS, each file is treated as a separate module. In total we have three different types of modules, there are:
1. Local modules – Modules that we create in our application.
2. Built-in modules – Modules that Node.js ships with out of the box
3. Third-party modules – Modules written by other developers that we can use in our application.