# @savalazic/event-bus

> Simple Event Bus library for event management.

Latest version **1.0.0** (published 2018-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @savalazic/event-bus
pnpm add @savalazic/event-bus
yarn add @savalazic/event-bus
bun add @savalazic/event-bus
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-12-30 |
| First published | 2018-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sava Lazic |
| Maintainers | savalazic |

## Links

- npm: https://www.npmjs.com/package/@savalazic/event-bus
- Repository: https://github.com/savalazic/event-bus
- Homepage: https://github.com/savalazic/event-bus#readme
- Issues: https://github.com/savalazic/event-bus/issues
- npm.io page: https://npm.io/package/@savalazic/event-bus

## Recent versions

- 1.0.0 (latest) — 2018-12-30

## README

# event-bus

Simple Event Bus library for event management.

## API

### `addEventListener`

```js
// @event - string
// @callback - function
EventBus.addEventListener(event, callback);
```

### `removeEventListener`

```js
// @event - string
// @callback - function
EventBus.removeEventListener(event, callback);
```

### `dispatchEvents`

```js
// @event - string
// @detail (optional) - object
EventBus.dispatchEvents(event, detail);
```

## Example

[All examples](https://github.com/savalazic/event-bus/tree/master/example)

## Licence

event-bus is released under the MIT license.
Copyright © 2018 Sava Lazic.

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