Node.js global require
问题 how can i require a module globally so i can use it in different modules without having to require it again? or do i just have to do that everytime? is there any best practice for this? heres an example of what i am talking about. lets say i have an index.js like this: var a = require('a.js'), utils = require('utils.js'); var str = 'hello this is a test'; str = a.change(str); utils.return(str); a.js var utils = require('utils.js'); exports.change = function(str) { str = str.replace('test',