UNPKG

mongopack

Version:

Simple backup and restore tool pack for mongodb

18 lines (14 loc) 335 B
exports.mergeOpts = function(target, source) { target = target || {}; if (arguments.length < 2) source = arguments[0]; Object.keys(source).forEach(function(i) { if (!target.hasOwnProperty(i)){ target[i] = source[i]; } }) return target; } exports.flag = function(name) { return " --" + name + " "; };