# simple-mixin

> Simple mixins for javascript programs

Latest version **1.0.0** (published 2013-05-01) · BSD license · 0 weekly downloads

## Install

```sh
npm install simple-mixin
pnpm add simple-mixin
yarn add simple-mixin
bun add simple-mixin
```

## 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.0 |
| Published | 2013-05-01 |
| First published | 2013-04-30 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Noah Isaacson |
| Maintainers | clewfirst |
| Keywords | mixin, mix, inherit |

## Links

- npm: https://www.npmjs.com/package/simple-mixin
- npm.io page: https://npm.io/package/simple-mixin

## Recent versions

- 1.0.0 (latest) — 2013-05-01
- 0.0.2 — 2013-05-01
- 0.0.1 — 2013-04-30
- 0.0.0 — 2013-04-30

## README

# Mixup
Simple mixin for node.js propgrams. Taken from the [Testable Javascript](http://youtu.be/JjqKQ8ezwKQ) Google Tech Talk

# Installation

```bash
npm install -S simple-mixin'
```

# Usage

```javascript
var mixin = require('simple-mix')
var Base = function() {
  this.name = 'base name'
}
Base.prototype.save = function() {
  console.log('save called for name: ' + this.name)
}

var Extendable = function() {
  this.name = 'extandable name'
}
var base = new Base()
var extendable = new Extendable()
mixin(base, extendable)
extendable.save()
```

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