{"_id":"@75lb/deep-merge@1.1.5","bugs":{"url":"https://github.com/75lb/deep-merge/issues"},"dist":{"shasum":"988f35645374c03e662d92ee06d616e8da49c64f","tarball":"http://registry-npm.ywwl.com/@75lb/deep-merge/download/@75lb/deep-merge-1.1.5.tgz","fileCount":5,"integrity":"sha512-Lg+xOSMYpJC8hiBJMfA/ljWAQRwroJdc+5HF1J0KNDP5B6Peo6xXFCB92Mz3nf+ybwzYLr+ir17v3yC88Lytnw==","signatures":[{"sig":"MEUCIAtVKbRltoYhp3RIPZjeq0C0NWl49W2I8XLOZv0qMan/AiEAyMf64vPMmb0rR1V3LRY2v0ywmAyuF/yCOF2Coop86Hk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH5H7Z0VnJXrXe8YZBhcUGnK90VIeARePsjRqPlGGyfYAiEA3F9NnT0SYf8oTsxe+PbR4qSA/dBsSszGThvjZZ/28Kk="}],"unpackedSize":56681,"size":14127,"noattachment":false,"key":"/@75lb/deep-merge/-/@75lb/deep-merge-1.1.5.tgz"},"name":"@75lb/deep-merge","type":"module","author":{"url":"http://75lb.com","name":"Lloyd Brookes","email":"opensource@75lb.com"},"engines":{"node":">=12.17"},"exports":"./index.js","gitHead":"44d6d6609bf5b394a1c9429ff55eb6495074e71e","license":"MIT","scripts":{"dist":"75lb-nature simple-rollup index.js","test":"npm run dist && npm run test:ci","test:ci":"75lb-nature test-runner test.js"},"version":"1.1.5","_npmUser":{"name":"75lb","email":"opensource@75lb.com"},"homepage":"https://github.com/75lb/deep-merge#readme","keywords":["merge","deep merge","array","object","merge","options"],"standard":{"envs":[],"ignore":["tmp","dist"]},"repository":{"url":"git+https://github.com/75lb/deep-merge.git","type":"git"},"_npmVersion":"12.0.2","description":"Deep-merge the values of one object structure into another","directories":{},"maintainers":[{"name":"75lb","email":"opensource@75lb.com"}],"_nodeVersion":"26.9.0","dependencies":{"lodash":"^4.18.1","typical":"^7.3.0"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"@75lb/nature":"latest"},"peerDependenciesMeta":{"@75lb/nature":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deep-merge_1.1.5_1791981893160_0.315625754808291"},"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","publish_time":1791981893267,"_cnpm_publish_time":1791981893267,"dist-tags":{"latest":"1.1.5"}}