extend-options

Basic object extending for two Javascript hash objects, intended for merging options.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
extend-options
000.0.19 years ago9 years agoMinified + gzip package size for extend-options in KB

Readme

Extend Options
Basic object extending for two Javascript hash objects, intended for merging provided options with defaults.

Installation

npm i --save extend-options

Usage

var extendOptions = require('extend-options');

var options = {
  a: 'a',
  c: 'c'
}

extendOptions({ a: 1, b: 2, c: 3 }, options);
// => { a: 'a', b: 2, c: 3 }

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).