Usage var extend = require('{%= name %}'); extend({a: 'b'}, {c: 'd'}) //=> {a: 'b', c: 'd'} Pass an empty object to shallow clone: var obj = {}; extend(obj, {a: 'b'}, {c: 'd'}) //=> {a: 'b', c: 'd'}