# inherit-multiple

> Multiple inheritence

Latest version **1.0.1** (published 2015-02-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install inherit-multiple
pnpm add inherit-multiple
yarn add inherit-multiple
bun add inherit-multiple
```

## 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.1 |
| Published | 2015-02-06 |
| First published | 2015-02-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jhorlin De Armas |
| Maintainers | jhorlin |
| Keywords | inherit, inherits, multiple, interface |

## Links

- npm: https://www.npmjs.com/package/inherit-multiple
- Repository: https://github.com/Jhorlin/inherit-multiple
- Issues: https://github.com/Jhorlin/inherit-multiple/issues
- npm.io page: https://npm.io/package/inherit-multiple

## Dependencies (1)

- [extend](https://npm.io/package/extend.md) ^2.0.0

## Recent versions

- 1.0.1 (latest) — 2015-02-06
- 1.0.0 — 2015-02-06

## README

#Inherit Multiple
Extends a child class by creating a prototype chain out of the base class(es)
----
[![view on npm](http://img.shields.io/npm/v/inherit-multiple.svg)](https://www.npmjs.org/package/inherit-multiple)
[![npm module downloads per month](http://img.shields.io/npm/dm/inherit-multiple.svg)](https://www.npmjs.org/package/inherit-multiple)
[![Build Status](https://travis-ci.org/Jhorlin/inherit-multiple.svg?branch=master)](https://travis-ci.org/Jhorlin/inherit-multiple)
[![Dependency Status](https://david-dm.org/Jhorlin/inherit-multiple.svg)](https://david-dm.org/Jhorlin/inherit-multiple)
## Usage
Install
`$ npm install inherit-multiple`
Test
`$ npm test`
Document
`$ npm run doc`

### Library
## Modules
<table>
  <thead>
    <tr>
      <th>Module</th><th>Description</th>
    </tr>
  </thead>
  <tbody>
<tr>
    <td><a href="#module_inherit-multiple">inherit-multiple</a></td>
    <td><p>Adds a prototype chain of all the base classes to a child class</p>
</td>
    </tr>
</tbody>
</table>


<a name="module_inherit-multiple"></a>
## inherit-multiple
Adds a prototype chain of all the base classes to a child class

<a name="module_inherit-multiple..inheritMultipleCreates a prototype chain from the super classes for the child classas the prototype of the child class."></a>
### inherit-multiple~inheritMultipleCreates a prototype chain from the super classes for the child classas the prototype of the child class.(childClass, ...superClasses) ⇒ <code>childClass</code>
**Returns**: <code>childClass</code> - Returns the extended child class  

| Param | Type | Description |
| --- | --- | --- |
| childClass | <code>function</code> | child class to extend |
| ...superClasses | <code>function</code> | super classes to extend the child class with |

**Example**  
```javascriptfunction ChildClass(){}function SuperClass(){}SuperClass.prototype.method = function(){};var inheritMultiple = require('inherit-multiple');inheritMultiple(ChildClass, SuperClass, Array);var instance = new ChildClass();```

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