Modules in node js

  • Everything in node.js is a module, know it or not

What is a node module ?

  • When we perform npm install, node_modules folder is created.
  • node_modules has a subfolder of the module you have installed example (lodash)
  • inside that lodash folder all the .js files will be stored after lodash installation

Example :

Leave a Comment