# xtend

> extend like a boss

Latest version **4.0.2** (published 2019-07-08) · MIT license · 0 weekly downloads

> **Native alternative:** Object.assign, or if deep clones are needed, use structuredClone — Use native JavaScript (Node 4.0.0+) (https://developer.mozilla.orgGlobal_Objects/Object/assign)

## Install

```sh
npm install xtend
pnpm add xtend
yarn add xtend
bun add xtend
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.2 |
| Published | 2019-07-08 |
| First published | 2012-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/xtend) |
| Module format | CommonJS |
| Node | >=0.4 |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 306 |
| Author | Raynos |
| Maintainers | raynos |
| Keywords | extend, merge, options, opts, object, array |

## Links

- npm: https://www.npmjs.com/package/xtend
- Repository: https://github.com/Raynos/xtend
- Issues: https://github.com/Raynos/xtend/issues
- npm.io page: https://npm.io/package/xtend

## Recent versions

- 4.0.2 (latest) — 2019-07-08
- 4.0.1 — 2015-11-02
- 4.0.0 — 2014-07-31
- 3.0.0 — 2014-04-14
- 2.2.0 — 2014-03-26
- 2.1.2 — 2014-01-01
- 2.1.1 — 2013-09-04
- 2.0.6 — 2013-06-20
- 2.0.5 — 2013-06-01
- 2.0.4 — 2013-05-15
- 2.0.3 — 2013-03-02
- 2.0.2 — 2013-03-02
- 2.0.1 — 2013-03-02
- 1.0.3 — 2012-05-30
- 1.0.2 — 2012-05-23
- … 2 more at https://npm.io/package/xtend/versions

## README

# xtend

[![browser support][3]][4]

[![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges)

Extend like a boss

xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.

## Examples

```js
var extend = require("xtend")

// extend returns a new object. Does not mutate arguments
var combination = extend({
    a: "a",
    b: "c"
}, {
    b: "b"
})
// { a: "a", b: "b" }
```

## Stability status: Locked

## MIT Licensed 


  [3]: http://ci.testling.com/Raynos/xtend.png
  [4]: http://ci.testling.com/Raynos/xtend

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