dextend

Deep extend for your JS objects

npm install dextend
1 downloads in the last day
6 downloads in the last week
121 downloads in the last month

dExtend (Deep Extend)

This simple module allows you to merge any objects. It can be useful when your application have a lot of separate config files you want to compile in the same project (Great example is Magento xml configs)

Installation

dExtend is only available trough github repositories. Download and unpack this module into node_modules folder.

Example

var d = require('dextend');

var obj1 = { 'this': 'is_sparta', 'sparta': { 'is': 'here', 'and': 'here' } }

var obj2 = { 'this': 'is_dextend', 'sparta': 'is not here' }

var final = d.extend(obj1, obj2); console.log(final);

npm loves you