{"name":"@75lb/deep-merge","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.1.1","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.3","test-runner":"^0.9.8"},"gitHead":"a310783ab3b2cfe4c6f5cfc5cd0d099b1d4d4f50","bugs":{"url":"https://github.com/75lb/deep-merge/issues"},"homepage":"https://github.com/75lb/deep-merge#readme","_id":"@75lb/deep-merge@1.1.1","_nodeVersion":"16.8.0","_npmVersion":"7.22.0","dist":{"integrity":"sha512-xvgv6pkMGBA6GwdyJbNAnDmfAIR/DfWhrj9jgWh3TY7gRm3KO46x/GPjRg6wJ0nOepwqrNxFfojebh0Df4h4Tw==","shasum":"3b06155b90d34f5f8cc2107d796f1853ba02fd6d","tarball":"http://registry-npm.ywwl.com/@75lb/deep-merge/download/@75lb/deep-merge-1.1.1.tgz","fileCount":4,"unpackedSize":22909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNOB8CRA9TVsSAnZWagAAb+wP/3QoSLps7UIar6L5x3wW\nYZmH9FmcCDDHwFdRlU0M6C2rP5YJVdkJHm5LfzE+Twjj1tuar0PHZQg+pyvd\nurpnqN3BkXBU+TQgZtELNujrZ3fD2D7AHAmCTerAkuDzQVgiF6M0wEEGvZFh\nzyxk9Y4Q+Z8gzTNxMmOOvuTM38fAHz89nUCGtOWBWLV4Ep5oTIfufByrce/k\nQzCfpX4orxGiJEreRdRj2a8lA/zk4db8ZsiDZ80oeNWxbCThVdESUWlhkuMb\nlpPoP2BO76HjbpShcgCR8ywQvYmSmYWcMzPQv8CzOGYKTwl6KWi523uqwPj8\nSRIF5j3LpX46kh8QwnAeaV87d8ddRN1avDN48eGClMUte4RBdudDc2XtuQkJ\nPTfydxJGG8nv5cd/v8jVAwBc/dMED+qdFT9ZOviuUvxomxTF9bcKMMuZ812H\nbxSIyjJ+ViDm9GP+3ddoOqdPBdf+/y1lRFe4nxI93pkYybAn2Vm5XpUSJLCd\nDsTlPCpf1VTF+nAxVyI0SZb+geTA1B+eF/RoEdR5d7+q9PrqGkvn7hPlK7XE\ngDjOe+gVa1RqKcXjVEKE9B25ULzHnulgbD8SuEuOAOi3pyYsyc/ma6drDJPr\nr25HQtaqLj71KXUxmrKgpX0XhugubhuC7A70Qenu/BqkhioeckgSIRx2DwfF\nuETL\r\n=dAW+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfdZfYZtDHPBEScAFZoicF/6ga1olF5IxJXORT63/FYAiEAoItgFV/uYVLTzwG84kLiB4S3CHvbawnvLBJTvwiPPXQ="}],"size":6450,"noattachment":false,"key":"/@75lb/deep-merge/-/@75lb/deep-merge-1.1.1.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.1_1630855292637_0.16383550275014813"},"_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":1630855292775,"_cnpm_publish_time":1630855292775,"dist-tags":{"latest":"1.1.5"}}