var count = 1; // psuedocode // if (words typed begins with @add) require(\'./add.js\'); // if (words typed begins with @remove) require(\'./remo
I know I'm a little bit late to answer this questions, just 7yrs!
You can simply use a global variable:
global.myVar = 'my-val'; console.log(myVar); // returns 'my-val' // from here on it's accessable to all modules by just the variable name
using-global-variables-in-node-js