{"name":"@75lb/deep-merge","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"@75lb/deep-merge","repository":{"type":"git","url":"git+https://github.com/75lb/deep-merge.git"},"main":"./index.mjs","exports":{"import":"./index.mjs"},"keywords":[],"license":"MIT","engines":{"node":">=14"},"scripts":{"test":"npm run dist && test-runner test.mjs","dist":"rollup -c"},"dependencies":{"lodash.assignwith":"^4.2.0","typical":"^7.0.0"},"devDependencies":{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","rollup":"^2.51.1","test-runner":"^0.9.2"},"gitHead":"78a6203c3b4e81579737e5e3033f22e89ad160d2","bugs":{"url":"https://github.com/75lb/deep-merge/issues"},"homepage":"https://github.com/75lb/deep-merge#readme","_id":"@75lb/deep-merge@1.0.0","_nodeVersion":"16.3.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-L5b+j4Kwezqz8JeROaEkEj5navyVIdeR+LS9XTbCem7W5C4DdJedWCTQKnkuQIXvOEdk4q7g0vCrN+FEUzbpaw==","shasum":"2abb9c4686b40cee73994449ec53b19619898f7f","tarball":"http://registry-npm.ywwl.com/@75lb/deep-merge/download/@75lb/deep-merge-1.0.0.tgz","fileCount":3,"unpackedSize":19948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwKQBCRA9TVsSAnZWagAAvxcP/i/E12ylwVli0/4dsKkm\nnHlYKaGsJBuTCVdjNdwjqB8lOW5f3AXsYfJNYZH6TLLZI7shh9leQD8FYhKO\n4ZoFrak5wz4rxBkA8+p7uD5AGP61XvU1B+je/Lv81Bar6/50Fr0HfNgtMMgP\n0ow5l8NIMMchyYrOu5WU8mZt5tBoFbXXjj9DWvkQOF10sHiGziUrFQVbEKZ3\nmUT3vyobnF7DrpoB8uBMadOqLD9IG5rKXi7AY9E+sotLfHAmJ+/+B4LEVPfn\nfef2GK+5aCDs0075hD+lEFTQCMw1Za+6ADfiiKiRIqqccVfpnvJ2LegXN/GX\ngVsFba1BcGyotfo0DappBh/TUR8K3EY1a5kxWimG66q0r4RABX+3+UZBuJRo\njmvgTakZT7l5v7j0GZUGy0KYJR3EmPgr/kXRY8niuqWSmRWJ9XPAujAPE8Nd\n+o8BhHjtxjw3SraSuxuUCSqXFzzva8KfJIA/oIoqNZW7rJMY0wSE+9fExjVI\nWL3YRwMLs9L8MrBmjWb0osntxhQHCEPQotk/QRqybibC6OfDZtDyZcwUIR3j\nM67YNE40/3aQ8c8TaS+dNcz6nzVeJ7i2vx35Z3giJ82TIJwIsDHxsRRZEhR2\nwTNpm+uxVVyIxYx6vAYYladwTaGT7ZXx05jsXw1hip6XO43CEKvTBjwZnz/M\nE84Q\r\n=EKrp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICq/mvpm6SVo44Jk63+LtnlPnjAGNp2SAqh9OklD/WVVAiEA4vlPOk4IDg5NP3z5+dXhQzBFskxg9XSmxf/yce6vP5k="}],"size":5377,"noattachment":false,"key":"/@75lb/deep-merge/-/@75lb/deep-merge-1.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deep-merge_1.0.0_1623237633717_0.08529137337772252"},"_hasShrinkwrap":false,"readme":"[![view on npm](https://badgen.net/npm/v/@75lb/deep-merge)](https://www.npmjs.org/package/@75lb/deep-merge)\n[![npm module downloads](https://badgen.net/npm/dt/@75lb/deep-merge)](https://www.npmjs.org/package/@75lb/deep-merge)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/deep-merge)](https://github.com/75lb/deep-merge/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/deep-merge)](https://github.com/75lb/deep-merge/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/deep-merge/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/deep-merge/actions/workflows/node.js.yml)\n[![Coverage Status](https://coveralls.io/repos/github/75lb/deep-merge/badge.svg)](https://coveralls.io/github/75lb/deep-merge)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# @75lb/deep-merge\n\nDeep-merge the values of one object structure into another. Similar to [`Object.assign()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) except it processes the full depth of the object structure, not only the top level. Useful for merging config.\n\n## Synopsis\n\n```js\nimport deepMerge from '@75lb/deep-merge'\n\n```\n\n### Simple\n\nTypical example merging four objects. Input:\n\n```js\ndeepMerge(\n  { port: 8000, data: { animal: 'cow' } },\n  { stack: ['one'] },\n  { stack: ['two'], help: true },\n  { data: { animal: 'bat', metal: 'iron' } }\n)\n```\n\nResult\n\n```js\n{\n  port: 8000,\n  stack: ['two'],\n  help: true,\n  data: { animal: 'bat', metal: 'iron' }\n}\n```\n\n### Arrays\n\nEmpty arrays are ignored and not merged in. Input:\n\n```js\ndeepMerge(\n  { stack: ['one'] },\n  { stack: [] }\n)\n```\n\nResult:\n\n\n```js\n{ stack: ['one'] }\n```\n\nHowever, if the later array contains one or more values the later array will *replace* the original: \n\n```js\ndeepMerge(\n  { stack: ['one'] },\n  { stack: ['two'] }\n)\n```\n\nResult:\n\n```js\n{ stack: ['two'] }\n```\n\n### Load anywhere\n\nThis library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.\n\nWithin a Node.js ECMAScript Module:\n\n```js\nimport deepMerge from '@75lb/deep-merge'\n```\n\nWithin an modern browser ECMAScript Module:\n\n```js\nimport deepMerge from './node_modules/@75lb/deep-merge/dist/index.mjs'\n```\n\n* * *\n\n&copy; 2021 [Lloyd Brookes](https://github.com/75lb) \\<75pound@gmail.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","publish_time":1623237633854,"_cnpm_publish_time":1623237633854,"dist-tags":{"latest":"1.1.5"}}