{"name":"deep-extend","description":"Recursive object extending.","license":"MIT","version":"0.2.7","homepage":"https://github.com/unclechu/node-deep-extend","repository":{"type":"git","url":"git://github.com/unclechu/node-deep-extend.git"},"author":{"name":"Viacheslav Lotsmanov","email":"lotsmanov89@gmail.com"},"main":"index","engines":{"node":">=0.4"},"_id":"deep-extend@0.2.7","dist":{"shasum":"4de94495073900fa866a11029f9b3b8a5e56014f","tarball":"http://registry-npm.ywwl.com/deep-extend/download/deep-extend-0.2.7.tgz","integrity":"sha512-1yIOhYbr5L77M/PlaP1PD61HHKGMCSIrk2VB2zO8dP971S72XGzQtDis+fvndgT3sv1+hUNbyHyOEoPtB6mP1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD37PqP9UW8qsET7IWunxq3Yj3o4tT1tBz1r3TqWYye0wIgVamW+qeMpzubQC32azuGcsKJgEI7e0EO0GkxT8n6lYA="}],"size":2046,"noattachment":false,"key":"/deep-extend/-/deep-extend-0.2.7.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"unclechu","email":"lotsmanov89@gmail.com"},"maintainers":[{"name":"unclechu","email":"lotsmanov89@gmail.com"}],"directories":{},"readme":"Deep Extend\n===========\n\nRecursive object extending.\n\n[![Build Status](https://api.travis-ci.org/unclechu/node-deep-extend.svg?branch=master)](https://travis-ci.org/unclechu/node-deep-extend)\n\n[![NPM](https://nodei.co/npm/deep-extend.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/deep-extend/)\n\nInstall\n-------\n\n```bash\n$ npm install deep-extend\n```\n\nUsage\n-----\n\n```javascript\nvar deepExtend = require('deep-extend');\nvar obj1 = {\n  a: 1,\n  b: 2,\n  d: {\n    a: 1,\n    b: [],\n    c: { test1: 123, test2: 321 }\n  },\n  f: 5,\n  g: 123,\n  i: 321,\n  j: [1, 2]\n};\nvar obj2 = {\n  b: 3,\n  c: 5,\n  d: {\n    b: { first: 'one', second: 'two' },\n    c: { test2: 222 }\n  },\n  e: { one: 1, two: 2 },\n  f: [],\n  g: (void 0),\n  h: /abc/g,\n  i: null,\n  j: [3, 4]\n};\n\ndeepExtend(obj1, obj2);\n\nconsole.log(obj1);\n/*\n{ a: 1,\n  b: 3,\n  d:\n   { a: 1,\n     b: { first: 'one', second: 'two' },\n     c: { test1: 123, test2: 222 } },\n  f: [],\n  g: undefined,\n  c: 5,\n  e: { one: 1, two: 2 },\n  h: /abc/g,\n  i: null,\n  j: [3, 4] }\n*/\n```\n\nUnit testing\n------------\n\n```bash\n$ npm test\n```\n\nChangelog\n---------\n\n[CHANGELOG.md](./CHANGELOG.md)\n\nAny issues?\n-----------\n\nPlease, report about issues\n[here](https://github.com/unclechu/node-deep-extend/issues).\n\nLicense\n-------\n\n[MIT](./LICENSE)\n","publish_time":1391270032356,"_cnpm_publish_time":1391270032356,"dist-tags":{"latest":"0.6.0"}}