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


The Node object extending function that Node uses for Node!


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