I know that global variables are bad.
But if I am using node\'s module \"util\" in 40 files in my framework, isn\'t it better to just declare it as a global variable
I have successfully been using the process object for passing around my configuration object. While in theory suffering from the exact same issues as mentioned above (encapsulation, testability and so forth) it works fine when using only non-state modifying properties (a hash table with primitives, basically).