You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
3.7 KiB

4 years ago
  1. # mixin-deep [![NPM version](https://img.shields.io/npm/v/mixin-deep.svg?style=flat)](https://www.npmjs.com/package/mixin-deep) [![NPM monthly downloads](https://img.shields.io/npm/dm/mixin-deep.svg?style=flat)](https://npmjs.org/package/mixin-deep) [![NPM total downloads](https://img.shields.io/npm/dt/mixin-deep.svg?style=flat)](https://npmjs.org/package/mixin-deep) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/mixin-deep.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/mixin-deep)
  2. > Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
  3. Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
  4. ## Install
  5. Install with [npm](https://www.npmjs.com/):
  6. ```sh
  7. $ npm install --save mixin-deep
  8. ```
  9. ## Usage
  10. ```js
  11. var mixinDeep = require('mixin-deep');
  12. mixinDeep({a: {aa: 'aa'}}, {a: {bb: 'bb'}}, {a: {cc: 'cc'}});
  13. //=> { a: { aa: 'aa', bb: 'bb', cc: 'cc' } }
  14. ```
  15. ## About
  16. <details>
  17. <summary><strong>Contributing</strong></summary>
  18. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
  19. </details>
  20. <details>
  21. <summary><strong>Running Tests</strong></summary>
  22. Running 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:
  23. ```sh
  24. $ npm install && npm test
  25. ```
  26. </details>
  27. <details>
  28. <summary><strong>Building docs</strong></summary>
  29. _(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.)_
  30. To generate the readme, run the following command:
  31. ```sh
  32. $ npm install -g verbose/verb#dev verb-generate-readme && verb
  33. ```
  34. </details>
  35. ### Related projects
  36. You might also be interested in these projects:
  37. * [defaults-deep](https://www.npmjs.com/package/defaults-deep): Like `extend` but recursively copies only the missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/defaults-deep "Like `extend` but recursively copies only the missing properties/values to the target object.")
  38. * [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow "Extend an object with the properties of additional objects. node.js/javascript util.")
  39. * [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep "Recursively merge values in a javascript object.")
  40. * [mixin-object](https://www.npmjs.com/package/mixin-object): Mixin the own and inherited properties of other objects onto the first object. Pass an… [more](https://github.com/jonschlinkert/mixin-object) | [homepage](https://github.com/jonschlinkert/mixin-object "Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.")
  41. ### Author
  42. **Jon Schlinkert**
  43. * [linkedin/in/jonschlinkert](https://linkedin.com/in/jonschlinkert)
  44. * [github/jonschlinkert](https://github.com/jonschlinkert)
  45. * [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
  46. ### License
  47. Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
  48. Released under the [MIT License](LICENSE).
  49. ***
  50. _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on December 09, 2017._