# backbone-deepextend

> A Backbone extend implementation that merges properties rather than overrides"

Latest version **1.0.3** (published 2016-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install backbone-deepextend
pnpm add backbone-deepextend
yarn add backbone-deepextend
bun add backbone-deepextend
```

## 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.3 |
| Published | 2016-05-06 |
| First published | 2016-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Graeme Yeates |
| Maintainers | majiksystems, megawac |

## Links

- npm: https://www.npmjs.com/package/backbone-deepextend
- Repository: https://github.com/majiksystems/backbone-deepextend
- Issues: https://github.com/majiksystems/backbone-deepextend/issues
- npm.io page: https://npm.io/package/backbone-deepextend

## Dependencies (3)

- [backbone](https://npm.io/package/backbone.md) *
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.3.5
- [lodash.create](https://npm.io/package/lodash.create.md) ^4.0.4

## Recent versions

- 1.0.3 (latest) — 2016-05-06
- 1.0.2 — 2016-05-05
- 1.0.1 — 2016-05-05
- 1.0.0 — 2016-05-05
- 0.0.1 — 2016-05-05

## README

# backbone-deepextend

A Backbone extend implementation that merges properties rather than overrides\&#34;. Useful for inheritting defaults and other attributes which are objects on a model.

[![Travis build status](http://img.shields.io/travis/majiksystems/backbone-deepextend.svg?style=flat)](https://travis-ci.org/majiksystems/backbone-deepextend)
[![Code Climate](https://codeclimate.com/github/majiksystems/backbone-deepextend/badges/gpa.svg)](https://codeclimate.com/github/majiksystems/backbone-deepextend)
[![Test Coverage](https://codeclimate.com/github/majiksystems/backbone-deepextend/badges/coverage.svg)](https://codeclimate.com/github/majiksystems/backbone-deepextend)
[![Dependency Status](https://david-dm.org/majiksystems/backbone-deepextend.svg)](https://david-dm.org/majiksystems/backbone-deepextend)
[![devDependency Status](https://david-dm.org/majiksystems/backbone-deepextend/dev-status.svg)](https://david-dm.org/majiksystems/backbone-deepextend#info=devDependencies)

This module should be imported before any models that need this functionality are derived as `<Class>.extend` is written on all objects on creation time.

```js
require('backbone-deepextend');

var Model = Backbone.Model.extend({
    defaults: {
        a: 1
    }
}).extend({
    defaults: {
        b: 2
    }
})

var model = new Model;
model.get('a') // => 1
model.get('b') // => 2
```

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