3 ms·
The module system in Node.js (not ES6 modules) makes it super easy to use modules because a module is bound to a variable and you can require the module from an
by z3t4 6y ago
The module system in Node.js (not ES6 modules) makes it super easy to use modules because a module is bound to a variable and you can require the module from anywhere and it will be scoped to the function. It's like if all code in the global JavaScript collective is available in global scope.
- z3t4 6y agoIts easier to use a community module in Node.js then it is to use a standard library feature in most programming languages.