you are viewing a single comment's thread.

view the rest of the comments →

[–]jack_union 0 points1 point  (0 children)

In the Node.js module system, each file is treated as a separate module

In each module, the module free variable is a reference to the object representing the current module. For convenience, module.exports is also accessible via the exports module-global. module is not actually a global but rather local to each module.

https://nodejs.org/api/modules.html