{"_id":"merge-value","_rev":"221325","name":"merge-value","description":"Similar to assign-value but deeply merges object values or nested values using object path/dot notation.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:40:08.000Z","created":"2015-10-02T07:41:33.125Z","1.0.0":"2017-07-20T21:19:30.224Z","0.1.1":"2015-10-02T07:46:20.071Z","0.1.0":"2015-10-02T07:41:33.125Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/merge-value.git"},"versions":{"1.0.0":{"name":"merge-value","description":"Similar to assign-value but deeply merges object values or nested values using object path/dot notation.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/merge-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/merge-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/merge-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^2.0.6","is-extendable":"^1.0.0","mixin-deep":"^1.2.0","set-value":"^2.0.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.4.2"},"keywords":["assign","dot","extend","get","has","merge","nested","notation","object","path","prop","property","set","value"],"verb":{"related":{"list":["assign-value","get-value","has-value","set-value","union-value","unset-value"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"216d81d50dc70772996809c6dfe2a9f516ced8e6","_id":"merge-value@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d28f8d41c0b37426e032d1059a0d0343302de502","size":2808,"noattachment":false,"key":"/merge-value/-/merge-value-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-value/download/merge-value-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-value-1.0.0.tgz_1500585569319_0.6994740683585405"},"directories":{},"publish_time":1500585570224,"_hasShrinkwrap":false,"_cnpm_publish_time":1500585570224},"0.1.1":{"name":"merge-value","description":"Similar to assign-value but deeply merges object values or nested values using object path/dot notation.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/merge-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/merge-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/merge-value/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^1.1.5","is-extendable":"^0.1.1","lazy-cache":"^0.2.3","mixin-deep":"^1.1.3","set-value":"^0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["assign","dot","extend","get","has","merge","nested","notation","object","path","prop","property","set","value"],"verb":{"related":{"list":["assign-value","get-value","has-value","set-value","union-value","unset-value"]}},"gitHead":"1e2adb66435e97976a191b5a299e1e56acfcbdff","_id":"merge-value@0.1.1","_shasum":"d1a1a718d553555ecbd602f4564c0053c54cd296","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d1a1a718d553555ecbd602f4564c0053c54cd296","size":2528,"noattachment":false,"key":"/merge-value/-/merge-value-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-value/download/merge-value-0.1.1.tgz"},"directories":{},"publish_time":1443771980071,"_cnpm_publish_time":1443771980071,"_hasShrinkwrap":false},"0.1.0":{"name":"merge-value","description":"Similar to assign-value but deeply merges object values or nested values using object path/dot notation.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/merge-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/merge-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/merge-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^1.1.5","is-extendable":"^0.1.1","lazy-cache":"^0.2.3","mixin-deep":"^1.1.3","set-value":"^0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["assign","dot","extend","get","has","merge","nested","notation","object","path","prop","property","set","value"],"verb":{"related":{"list":["assign-value","get-value","has-value","set-value","union-value","unset-value"]}},"_id":"merge-value@0.1.0","_shasum":"7faacabeb0048f4b6c4ca323dca3786c99c8e27d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"7faacabeb0048f4b6c4ca323dca3786c99c8e27d","size":2368,"noattachment":false,"key":"/merge-value/-/merge-value-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-value/download/merge-value-0.1.0.tgz"},"directories":{},"publish_time":1443771693125,"_cnpm_publish_time":1443771693125,"_hasShrinkwrap":false}},"readme":"# merge-value [![NPM version](https://img.shields.io/npm/v/merge-value.svg?style=flat)](https://www.npmjs.com/package/merge-value) [![NPM monthly downloads](https://img.shields.io/npm/dm/merge-value.svg?style=flat)](https://npmjs.org/package/merge-value) [![NPM total downloads](https://img.shields.io/npm/dt/merge-value.svg?style=flat)](https://npmjs.org/package/merge-value) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/merge-value.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/merge-value)\n\n> Similar to assign-value but deeply merges object values or nested values using object path/dot notation.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save merge-value\n```\n\n## Usage\n\n```js\nvar merge = require('merge-value');\n\nvar obj = {};\nmerge(obj, 'foo', {a: 'b'})\n//=> obj.foo ==> {a: 'b'}\n\nvar obj = {foo: {a: 'b'}};\nmerge(obj, 'foo', {c: 'd'})\n//=> obj.foo ==> {a: 'b', c: 'd'}\n\nvar obj = {};\nmerge(obj, 'a.b.c', {one: 'two'});\nmerge(obj, 'a.b.c', {three: 'four'});\n//=> obj.a.b.c ==> {one: 'two', three: 'four'}\n\nvar obj = {foo: {bar: {baz: {a: 'b'}}}};\nmerge(obj, 'foo', {bar: {baz: {c: 'd'}}});\n//=> {foo: {bar: {baz: {a: 'b', c: 'd'}}}}\n```\n\n## About\n\n### Related projects\n\n* [assign-value](https://www.npmjs.com/package/assign-value): Assign a value or extend a deeply nested property of an object using object path… [more](https://github.com/jonschlinkert/assign-value) | [homepage](https://github.com/jonschlinkert/assign-value \"Assign a value or extend a deeply nested property of an object using object path notation.\")\n* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value \"Use property paths (`a.b.c`) to get a nested value from an object.\")\n* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://github.com/jonschlinkert/has-value) | [homepage](https://github.com/jonschlinkert/has-value \"Returns true if a value exists, false if empty. Works with deeply nested values using object paths.\")\n* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value \"Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.\")\n* [union-value](https://www.npmjs.com/package/union-value): Set an array of unique values as the property of an object. Supports setting deeply… [more](https://github.com/jonschlinkert/union-value) | [homepage](https://github.com/jonschlinkert/union-value \"Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.\")\n* [unset-value](https://www.npmjs.com/package/unset-value): Delete nested properties from an object using dot notation. | [homepage](https://github.com/jonschlinkert/unset-value \"Delete nested properties from an object using dot notation.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 20, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/merge-value","bugs":{"url":"https://github.com/jonschlinkert/merge-value/issues"},"license":"MIT"}