util-extend

Node's internal object extension function

npm install util-extend
241 downloads in the last day
944 downloads in the last week
6 384 downloads in the last month

util-extend

The Node object extending function that Node uses for Node!

Usage

var extend = require('util-extend');
function functionThatTakesOptions(options) {
  var options = extend(defaults, options);
  // now any unset options are set to the defaults.
}
npm loves you