util-extend

Node's internal object extension function

Usage no npm install needed!

<script type="module">
  import utilExtend from 'https://cdn.skypack.dev/util-extend';
</script>

README

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.
}