Deathspike generally you'll do something like myObject = {}; myObject.doStuff = function() {}; module.exports = myObject;