# obj-extend

> Extend objects easily in node.js

Latest version **0.1.0** (published 2012-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install obj-extend
pnpm add obj-extend
yarn add obj-extend
bun add obj-extend
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-10-19 |
| First published | 2012-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matt Morgan |
| Maintainers | mlmorg |

## Links

- npm: https://www.npmjs.com/package/obj-extend
- Repository: https://github.com/mlmorg/obj-extend
- npm.io page: https://npm.io/package/obj-extend

## Recent versions

- 0.1.0 (latest) — 2012-10-19

## README

# obj-extend

When called, this module simply sets all of the properties of each source
object onto the destination object (the first argument). Every property with
the same name is overridden in the order in which they were passed.

## Installation

``` bash
$ npm install obj-extend
```

## Usage

``` javascript
var extend = require('obj-extend');

var Person = function (name) {
  this.name = name;
};

Person.prototype = extend(events.EventEmitter.prototype, {

  emitName: function () {
    this.emit('name', this.name);
  }

});
```

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