UNPKG

@house-agency/brewtils

Version:

The Brewery Node.js Utilities (brewtils)

23 lines (18 loc) 450 B
function exporter() { return Array.prototype.slice.call(arguments) .reduce((prev, cur) => { if (typeof cur === 'function') { const exp = {}; exp[cur.name] = cur; return Object.assign(prev, exp); } if (typeof cur === 'object') { return Object.assign(prev, cur); } }, {}); } const wrapper = Object.assign( exporter, {} ); module.exports = wrapper;