# @isoden/eveemi

> Tiny Event Module

Latest version **1.1.7** (published 2015-08-31) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @isoden/eveemi
pnpm add @isoden/eveemi
yarn add @isoden/eveemi
bun add @isoden/eveemi
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2015-08-31 |
| First published | 2015-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | YU ISODA |
| Maintainers | isoden |

## Links

- npm: https://www.npmjs.com/package/@isoden/eveemi
- Repository: https://github.com/isoden/EveEmi
- Homepage: https://github.com/isoden/EveEmi#readme
- Issues: https://github.com/isoden/EveEmi/issues
- npm.io page: https://npm.io/package/@isoden/eveemi

## Recent versions

- 1.1.7 (latest) — 2015-08-31
- 1.1.6 — 2015-08-31
- 1.1.5 — 2015-08-31
- 1.1.4 — 2015-08-29
- 1.1.3 — 2015-08-29
- 1.1.2 — 2015-07-06
- 1.1.1 — 2015-07-06
- 1.1.0 — 2015-06-26
- 1.0.0 — 2015-06-24

## README

EveEmi
===

[![npm](https://img.shields.io/npm/v/@isoden/eveemi.svg?style=flat-square)](https://www.npmjs.com/package/@isoden/eveemi)

## Installation

```
$ npm install @isoden/eveemi --save
```

## Usage

```js
var Model = function () {
  EveEmi.apply(this, arguments);

  this.attrs = {};
};
Model.prototype = new EveEmi();

Model.prototype.set = function (key, value) {
  this.attrs[key] = value;
  this.trigger('set');
};

var model = new Model();

model.on('set', function () {
  alert('set!');
});

model.set('name', 'isoden'); // alert: 'set!'

```


## API

### on(type: string, callback: function[, ctx: object, once: boolean = false])
### once(type: string, callback: function[, ctx: object])
### off(type: string, func: function)
### listenTo(target: EveEmi, type: string, callback: function[, ctx: object, once: boolean = false])
### listenToOnce(target: EveEmi, type: string, callback: function[, ctx: object])
### trigger(type: string, [...args])

## License

MIT License
http://isoden.mit-license.org

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