# overwrite-object

> A tiny module to merge two objects and overwrite values cleverly.

Latest version **1.0.5** (published 2017-07-04) · 0 weekly downloads

## Install

```sh
npm install overwrite-object
pnpm add overwrite-object
yarn add overwrite-object
bun add overwrite-object
```

## 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.5 |
| Published | 2017-07-04 |
| First published | 2017-02-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Arpad Hegedus |
| Maintainers | arpadhegedus |

## Links

- npm: https://www.npmjs.com/package/overwrite-object
- Repository: https://github.com/arpadHegedus/overwrite-object
- Homepage: https://github.com/arpadHegedus/overwrite-object#readme
- Issues: https://github.com/arpadHegedus/overwrite-object.git/issues
- npm.io page: https://npm.io/package/overwrite-object

## Recent versions

- 1.0.5 (latest) — 2017-07-04
- 1.0.4 — 2017-02-16
- 1.0.3 — 2017-02-16
- 1.0.2 — 2017-02-15
- 1.0.1 — 2017-02-15
- 1.0.0 — 2017-02-15

## README

#overwrite-object

A tiny module to merge two objects and overwrite values cleverly.

## Installation

```js
npm install overwrite-object
```

## Example

```js
var overwriteObject = require('overwrite-object');

var obj1 = {
    name: {
        first: 'John',
        last: 'Smith'
    },
    age: 30,
    hobbies: [
        'mountain climbing', 'pets'
    ]
};
var obj2 = {
    name: {
        title: 'Mr'
    },
    age: 'N.A.',
    hobbies: [
        'eating out', 'long walks in the park'
    ]
};

var newObj = overwriteObject(obj1, obj2);
```

will produce

```js
var newObj = {
    name: {
        first: 'John',
        last: 'Smith',
        title: 'Mr'
    },
    age: 'N.A.',
    hobbies: [
        'mountain climbing', 'pets', 'eating out', 'long walks in the park'
    ]
};
```

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