# emitter

> Faster events controller for class and object

Latest version **0.0.5** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

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

## 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.0.5 |
| Published | 2015-10-16 |
| First published | 2012-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Will Wen Gunn |
| Maintainers | iwillwen, zenorocha |

## Links

- npm: https://www.npmjs.com/package/emitter
- Repository: git@github.com:iwillwen/node-emitter
- Homepage: https://github.com/iwillwen/node-emitter
- Issues: https://github.com/iwillwen/node-emitter/issues
- npm.io page: https://npm.io/package/emitter

## Dependencies (3)

- [gulp](https://npm.io/package/gulp.md) ^3.9.0
- [gulp-babel](https://npm.io/package/gulp-babel.md) ^5.3.0
- [gulp-sourcemaps](https://npm.io/package/gulp-sourcemaps.md) ^1.6.0

## Recent versions

- 0.0.5 (latest) — 2015-10-16
- 0.0.4 — 2015-10-16
- 0.0.3 — 2015-10-16
- 0.0.1 — 2012-03-10
- 0.0.2 — 2012-01-15

## README

## emitter ![NPM version](https://img.shields.io/npm/v/emitter.svg?style=flat)

Faster events controller for class and object

### Installation
```bash
$ npm install emitter
```

### Example
```js
import { EventEmitter, Promise } from 'emitter'

// Extend a object
let obj = { /* ... */ }
EventEmitter.extend(obj)

// Create a new emitter
let emitter = new EventEmitter()

// Define a class extend from Promise or EventEmitter
class Machine extends Promise {
  // ...
}
```

### API

- emitter.Promise()
- emitter.EventEmitter()

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

---
![docor]()
built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0

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