1 | # mixin-deep [![NPM version](https://badge.fury.io/js/mixin-deep.svg)](http://badge.fury.io/js/mixin-deep)
|
2 |
|
3 | > Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
|
4 |
|
5 | ## Install
|
6 |
|
7 | Install with [npm](https://www.npmjs.com/)
|
8 |
|
9 | ```sh
|
10 | $ npm i mixin-deep --save
|
11 | ```
|
12 |
|
13 | Install with [bower](http://bower.io/)
|
14 |
|
15 | ```sh
|
16 | $ bower install mixin-deep --save
|
17 | ```
|
18 |
|
19 | ## Usage
|
20 |
|
21 | ```js
|
22 | var mixinDeep = require('mixin-deep');
|
23 |
|
24 | mixinDeep({a: {aa: 'aa'}}, {a: {bb: 'bb'}}, {a: {cc: 'cc'}});
|
25 | //=> { a: { aa: 'aa', bb: 'bb', cc: 'cc' } }
|
26 | ```
|
27 |
|
28 | ## Related projects
|
29 |
|
30 | * [assign-deep](https://github.com/jonschlinkert/assign-deep): Deeply assign the enumerable properties of source objects to a destination object.
|
31 | * [defaults-deep](https://github.com/jonschlinkert/defaults-deep): Like `extend` but recursively copies only the missing properties/values to the target object.
|
32 | * [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util.
|
33 | * [merge-deep](https://github.com/jonschlinkert/merge-deep): Recursively merge values in a javascript object.
|
34 | * [omit-deep](https://github.com/jonschlinkert/omit-deep): Recursively omit the specified key or keys from an object.
|
35 |
|
36 | ## Running tests
|
37 |
|
38 | Install dev dependencies:
|
39 |
|
40 | ```sh
|
41 | $ npm i -d && npm test
|
42 | ```
|
43 |
|
44 | ## Contributing
|
45 |
|
46 | Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/mixin-deep/issues/new)
|
47 |
|
48 | ## Author
|
49 |
|
50 | **Jon Schlinkert**
|
51 |
|
52 | + [github/jonschlinkert](https://github.com/jonschlinkert)
|
53 | + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
54 |
|
55 | ## License
|
56 |
|
57 | Copyright © 2015 Jon Schlinkert
|
58 | Released under the MIT license.
|
59 |
|
60 | ***
|
61 |
|
62 | _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 28, 2015._
|