# nested-object-assign

> Package to support nested merging of objects & properties, using Object.Assign

Latest version **1.0.4** (published 2021-01-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install nested-object-assign
pnpm add nested-object-assign
yarn add nested-object-assign
bun add nested-object-assign
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-01-28 |
| First published | 2017-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Geta AS / Eirik Horvath |
| Maintainers | geta_digital, valdisiljuconoks, eirhor |
| Keywords | es6, npm, nested, object, assign |

## Links

- npm: https://www.npmjs.com/package/nested-object-assign
- Repository: https://github.com/Geta/NestedObjectAssign
- Issues: https://github.com/Geta/NestedObjectAssign/issues
- npm.io page: https://npm.io/package/nested-object-assign

## Recent versions

- 1.0.4 (latest) — 2021-01-28
- 1.0.3 — 2018-08-31
- 1.0.2 — 2017-12-21
- 1.0.1 — 2017-07-29
- 1.0.0 — 2017-06-07

## README

# NestedObjectAssign
[![Build Status](https://travis-ci.org/Geta/NestedObjectAssign.svg?branch=master)](https://travis-ci.org/Geta/NestedObjectAssign)
[![dependencies Status](https://david-dm.org/geta/NestedObjectAssign/status.svg)](https://david-dm.org/geta/NestedObjectAssign)

This package extends the functionality given by Object.assign() to also include the values of nested objects.

## Installation
```
npm install --save nested-object-assign
```

## Usage
Works just like Object.Assign, add an empty object first (the object you want the other objects merged into), then as many objects as you wish afterwards, comma separated.

```js
import nestedObjectAssign from 'nested-object-assign';
const defaults = {}

function test() {
    let data = nestedObjectAssign({}, defaults, object1, object2, object3);
}
```

## Tests
Tests were done for these node.js versions:
* 8
* 7
* 6

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