June 9, 2014 (Updated December 18, 2014) Update July. 28, 2014: I just gave a talk at BayNode on this exact subject, which includes a walkthrough of all the code discussed in this post. If talks & slides are more your style, check it out. Almost any Node.js developer can tell you what the require() function does, but how many of us actually know how it works? We use it every day to load libraries