# eventhub.js

> A simple event publisher

Latest version **0.3.0** (published 2014-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install eventhub.js
pnpm add eventhub.js
yarn add eventhub.js
bun add eventhub.js
```

## 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.3.0 |
| Published | 2014-05-06 |
| First published | 2014-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Elisha Fitch-Cook |
| Maintainers | elisha |

## Links

- npm: https://www.npmjs.com/package/eventhub.js
- Repository: https://github.com/elishacook/eventhub.js
- Issues: https://github.com/elishacook/eventhub.js/issues
- npm.io page: https://npm.io/package/eventhub.js

## Recent versions

- 0.3.0 (latest) — 2014-05-06

## README

# EventHub

EventHub is a small, simple, well...uh, event manager. It does not support DOM events. It is intended to be used as a notification center for an application or to add event management behaviors to other objects. It is similar to jQuery in use. For instance, `obj.on('foo bar', some_fn)` will call `some_fn` when either `"foo"` or `"bar"` are fired on `obj`.

Have a look at the unit tests for usage examples.

## Install

You can install using bower

```
bower install eventhub.js
```

Eventhub will register itself using AMD, Node and/or AngularJS. If none of those environments are found it will be available as a global. If you are using angular, depend on the `eventhub` module and inject the `EventHub` class.

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