UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

16 lines (13 loc) 413 B
// lazy Object.assign logic that only works for merging // two objects; eventually we should replace this with Object.assign. module.exports = function assign (defaults, configuration) { var o = {} configuration = configuration || {} Object.keys(defaults).forEach(function (k) { o[k] = defaults[k] }) Object.keys(configuration).forEach(function (k) { o[k] = configuration[k] }) return o }