{"name":"@75lb/deep-merge","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.1.0","description":"Deep-merge the values of one object structure into another","repository":{"type":"git","url":"git+https://github.com/75lb/deep-merge.git"},"exports":"./index.js","keywords":["merge","deep merge","array","object","merge","options"],"license":"MIT","type":"module","engines":{"node":">=12.17"},"scripts":{"test":"npm run dist && npm run test:ci","test:ci":"test-runner test.js","dist":"rollup -c","cover":"c8 npm test && c8 report --reporter=text-lcov | coveralls"},"dependencies":{"lodash.assignwith":"^4.2.0","typical":"^7.1.1"},"devDependencies":{"@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-node-resolve":"^13.0.4","c8":"^7.8.0","coveralls":"^3.1.1","rollup":"^2.56.2","test-runner":"^0.9.8"},"gitHead":"d8c1ce12bbced88d0316c1bb9e5a2ebc02f54e1a","bugs":{"url":"https://github.com/75lb/deep-merge/issues"},"homepage":"https://github.com/75lb/deep-merge#readme","_id":"@75lb/deep-merge@1.1.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.6","dist":{"integrity":"sha512-tnk59L6Sm3avkaoyUyu00MI3jztL4rsZQu8XzLjcOLIQEYrxgSjs2mtklXmYNFWeR/wYrF2dhNqe5cW8VBuu+w==","shasum":"6dc1fc77c8288fe316f56686ead1b4aeea1b5956","tarball":"http://registry-npm.ywwl.com/@75lb/deep-merge/download/@75lb/deep-merge-1.1.0.tgz","fileCount":4,"unpackedSize":22533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHOvNCRA9TVsSAnZWagAATKoP/0szs0RZaybp1p9r00kq\nLFb/cZIiOXd1SHQJ0EjRoprOQNg4l6BBMW0+qpvURGQiU9VsKVBid4G3Nul3\nm5JF04LtcExA0NfqtE6AL3A+GN1BEZ2MWLH15tqqck9u+k9AREOWEHpd56Mj\nT/+SJ127MVnqNVcbOubAMs3ErXKix8Vxjgg/yx95nt/JMEFRyhwnGNX0MRXq\n4jIjFhGzDlOtKCMo8332/4q5+sYjbPqI/MoWKeg411s/0WOD9GNFg1DFPc2s\noSRz9GgX4cv6lkvYyJgTU6rtL+T9svpu+MJ+PbQBCXXz+0RJw+E3s5uXHx6i\nPZA0W5Pu/ni7d6AC4bUoduO5ul79daM7YesbatHbqKE43isbljKD/7N2Ck6w\n4oxGr8SlEs1NBpQ0+XH2KvbJVLf8lkilg9rVnZcEtNzGwOr1Ge+Ala9htYLx\nOmoa2GqlB/7jUKvgeHfUUszCHkzdmPkemOYiqIfB9tl0ZdCd9fLzfW5lct2I\nOW3lhI38HTnfNzzL/WHfByYRWOv9Jo1U5aLWC7yH8jnQ/K1bEqkGlFgkU2zb\n7G8h7oyGiZU8+iuv3UlteS+vJyS/m/TJey9FZyatsAjT/D6ZE6w9iLIdHzHx\nixwMDvLeoklnSzZQshHp9AD+r0NH8wxUfjuah5gb6p8D1nIZEodYgx+o+Oi+\nTsEE\r\n=vPJf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGq0Ib+CqzqGW1ZnapF/CHRiHnXP/dwyefuscE4RE8RwIhAIdjqPJtVioU91jrw0sp8cljG+fQa+66ZvDdGiTzFHTB"}],"size":6325,"noattachment":false,"key":"/@75lb/deep-merge/-/@75lb/deep-merge-1.1.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.1.0_1629285325823_0.354015021037722"},"_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":1629285325984,"_cnpm_publish_time":1629285325984,"dist-tags":{"latest":"1.1.5"}}