{"name":"@75lb/deep-merge","author":{"name":"Lloyd Brookes","email":"opensource@75lb.com","url":"http://75lb.com"},"version":"1.1.4","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":"75lb-nature test-runner test.js","dist":"75lb-nature simple-rollup index.js"},"dependencies":{"lodash":"^4.17.21","typical":"^7.1.1"},"devDependencies":{},"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"standard":{"ignore":["tmp","dist"],"envs":[]},"gitHead":"706fd94568483cd449d4c1cfb6ee8318a093feaf","_id":"@75lb/deep-merge@1.1.4","bugs":{"url":"https://github.com/75lb/deep-merge/issues"},"homepage":"https://github.com/75lb/deep-merge#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Fjmi8VSxoGF80wn8HSHTPfUKLSJ+aiQE7rXyrFV6apP8Xyj8v4bqdC7BBoklxjt671gUqP0yREwpDlUP5R/VyQ==","shasum":"6084e9852aebfbf84e76046eb07b8c359ab30dca","tarball":"http://registry-npm.ywwl.com/@75lb/deep-merge/download/@75lb/deep-merge-1.1.4.tgz","fileCount":5,"unpackedSize":53792,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICbzFVVYzWV635RZSBtefh2orDGfSHUdT0JfQpatOWr2AiBYcaUBUMx4sZMI/DHT9yj5jjxKw8iby7i3eZEOW/ZobA=="}],"size":12979,"noattachment":false,"key":"/@75lb/deep-merge/-/@75lb/deep-merge-1.1.4.tgz"},"_npmUser":{"name":"75lb","email":"opensource@75lb.com"},"directories":{},"maintainers":[{"name":"75lb","email":"opensource@75lb.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deep-merge_1.1.4_1778682029821_0.9533491622126691"},"_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\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; 2018-26 [Lloyd Brookes](https://github.com/75lb) \\<opensource@75lb.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":1778682029956,"_cnpm_publish_time":1778682029956,"dist-tags":{"latest":"1.1.5"}}