I’m doing some things in Node.js and I needed to create a global configuration object (loaded from a Javascript file). Super easy in Node.js. Present in all Node.js models is an object called GLOBAL. You can attach things to it in on module and access it in another. My configuration file (file.js): In my server.js […]
↧