Internal working of require module in Node.js
Introduction
There are 5 steps that node.js internally performs when requiring a particular module .Node.js had two module systems : CommonJs and ECMAScript modules.
By default, Node.js will treat the following as CommonJS modules:
Files with a .cjs...
vedants.hashnode.dev8 min read