Node.js Handbook - How `require()` Actually Works | FredKSchott
Curious, I dug into Node core to find out what was happening under the hood. But instead of finding a single function, I ended up at the heart of Node's module system: module.js. The file contains a surprisingly powerful yet relatively unknown core module that controls the loading, compiling, and caching of every file used. require(), it turned out, was just the tip of the iceberg.
Read full article from Node.js Handbook - How `require()` Actually Works | FredKSchott
No comments:
Post a Comment