An open API service indexing awesome lists of open source software.

https://github.com/jongacnik/mextend

mextend means microextend means MICRO EXTEND for keepin it real basic
https://github.com/jongacnik/mextend

Last synced: about 1 year ago
JSON representation

mextend means microextend means MICRO EXTEND for keepin it real basic

Awesome Lists containing this project

README

          

# mextend

mextend means microextend means MICRO EXTEND for keepin it real basic. If you need complex extends, don't use.

## Getting Started

npm install mextend

mextend is meant to be consumed in a [CommonJS](http://www.commonjs.org/), [Browserify](http://browserify.org/) environment:

var mextend = require('mextend');

var defaults = {
'a' : 0,
'b' : {},
'c' : function(){ }
}

var options = {
'a' : 0,
'b' : {
'super' : 'duper'
},
'c' : function(){
console.log('really cool');
}
}

console.log(mextend(defaults, options));

# Output
{
'a' : 0,
'b' : {
'super' : 'duper'
},
'c' : function(){
console.log('really cool');
}
}