Reputation: 523
According to the document (https://nodejs.org/api/globals.html), require()
function is one of the global objects/functions. But I'm having a hard time finding its source code on Github. Are they written in JS or C++? I was looking for them in https://github.com/nodejs/node project.
Upvotes: 7
Views: 3301