Create a node module from a string of code, and maybe a file name.
npm install make-module
varfile=path.join(__dirname,"./some-module.js");varcode=fs.readFileSync(file).toString();varsomeModule=makeModule(code,file);// find `module.exports` at `someModule.exports`