# defaults-deep

> Like `extend` but recursively copies only the missing properties/values to the target object.

Latest version **0.2.4** (published 2018-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install defaults-deep
pnpm add defaults-deep
yarn add defaults-deep
bun add defaults-deep
```

## Health

**Score 13/100 (F)** — status: abandoned.

Positive: has types package; high quality score.

Warnings: low downloads; no esm support; has vulnerabilities; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2018-02-07 |
| First published | 2014-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/defaults-deep) |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 1 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Jon Schlinkert |
| Maintainers | doowb, jonschlinkert |
| Keywords | copy, default, defaults, extend, merge, object, properties, property, value, values, javascript, js, util, utils |

## Links

- npm: https://www.npmjs.com/package/defaults-deep
- Repository: https://github.com/jonschlinkert/defaults-deep
- Issues: https://github.com/jonschlinkert/defaults-deep/issues
- npm.io page: https://npm.io/package/defaults-deep

## Dependencies (3)

- [for-own](https://npm.io/package/for-own.md) ^0.1.3
- [lazy-cache](https://npm.io/package/lazy-cache.md) ^0.2.3
- [is-extendable](https://npm.io/package/is-extendable.md) ^0.1.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.4 (latest) — 2018-02-07
- 0.2.3 — 2015-08-21
- 0.2.2 — 2015-05-28
- 0.2.1 — 2015-02-25
- 0.2.0 — 2015-02-25
- 0.1.2 — 2014-10-14
- 0.1.1 — 2014-10-12
- 0.1.0 — 2014-10-12

## README

# defaults-deep [![NPM version](https://badge.fury.io/js/defaults-deep.svg)](http://badge.fury.io/js/defaults-deep)  [![Build Status](https://travis-ci.org/jonschlinkert/defaults-deep.svg)](https://travis-ci.org/jonschlinkert/defaults-deep)

> Like `extend` but recursively copies only the missing properties/values to the target object.

## Install

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i defaults-deep --save
```

Install with [bower](http://bower.io/)

```sh
$ bower install defaults-deep --save
```

## Usage

```js
var defaults = require('defaults-deep');

defaults({a: {one: 'one'}}, {a: {two: 'two'}})
//=> {a: {one: 'one', two: 'two'}};
```

## Related projects

* [assign-deep](https://github.com/jonschlinkert/assign-deep): Deeply assign the enumerable properties of source objects to a destination object. If a callback… [more](https://github.com/jonschlinkert/assign-deep)
* [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util.
* [merge-deep](https://github.com/jonschlinkert/merge-deep): Recursively merge values in a javascript object.
* [mixin-deep](https://github.com/jonschlinkert/mixin-deep): Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
* [omit-deep](https://github.com/jonschlinkert/omit-deep): Recursively omit the given keys from an object.

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/defaults-deep/issues/new)

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 28, 2015._

---
_Source: https://npm.io/package/defaults-deep · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
