Define simple callback function with javascript Node.js
npm install simple-callback
exports.set(name, value)
exports.get(name)
var callback = require('./simple-callback');
var setup = callback.set('func', function() {
return 'simple callback';
});
console.log(setup.get('func'));