# eventy

> An object event injection.

Latest version **2.0.0** (published 2013-10-22) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.0 |
| Published | 2013-10-22 |
| First published | 2013-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shallker Wang |
| Maintainers | shallker-wang |
| Keywords | eventy, event, events |

## Links

- npm: https://www.npmjs.com/package/eventy
- Repository: https://github.com/shallker-wang/eventy
- Issues: https://github.com/shallker-wang/eventy/issues
- npm.io page: https://npm.io/package/eventy

## Dependencies (1)

- [dever](https://npm.io/package/dever.md) *

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2013-10-22
- 1.1.4 — 2013-10-20
- 1.1.3 — 2013-08-29
- 1.1.2 — 2013-08-29
- 1.1.1 — 2013-08-29
- 1.1.0 — 2013-08-29
- 1.0.2 — 2013-08-29
- 1.0.1 — 2013-08-27
- 1.0.0 — 2013-08-27

## README

eventy
==========

An object event injection.


## Installation
```bash
npm install eventy
```


## Quick Start
```javascript
var eventy = require('eventy');

function onUpdate(value) {
  console.log(value);
}

var user = {}
eventy(user);
user.on('update', onUpdate);
user.trigger('update', 'dead');
user.off('update', onUpdate);
```


## Global Uses
```javascript
var Eventy = require('eventy');

var Events = new Eventy();

function me() {
  Events.on('hi', function(message) {
    console.log(message);
  })  
}

function you() {
  Events.trigger('hi', 'from you');
}

me();
you();
```

---

Copyright (c) 2013 Shallker Wang - MIT License (enclosed)

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