I would like to have a module for Node.js that is a directory with several files. I\'d like some vars from one file to be accessible from other file, but not from the files exte
Okay, you may be able to do this with the "global" namespace:
//index.js global.foo = "some value";
and then
//extra.js var bar = global.foo;