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 do this to make it more concise and readable. This is what I've seen done in several of the well written open sourced modules:
var self = module.exports = { foo: function (req, res, next) { return ('foo'); }, bar: function(req, res, next) { self.foo(); } }