How do you call a function from within another function in a module.exports declaration?
module.exports
var bla = require(\'./bla.js\'); console.log(bl
You can also save a reference to module's global scope outside the (module.)exports.somemodule definition:
var _this = this; exports.somefunction = function() { console.log('hello'); } exports.someotherfunction = function() { _this.somefunction(); }