Hey folks.

While developing a function that lets me require() custom files, I took the 
original JS and jSON "loaders" as examples.

But what I saw within the JS version confused me: It didn’T return a thing!


> console.log(require.extensions[".js"].toString())
function (module, filename) {
  var content = fs.readFileSync(filename, 'utf8');
  module._compile(internalModule.stripBOM(content), filename);
}


So - is require() "really" sync? Or, is it actually async?

Kind regards, Ingwie!

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/246C9B92-A3AD-410E-9171-77A2D1FC512A%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to