# small-events-manager

> small events manager

Latest version **1.0.0** (published 2020-07-09) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install small-events-manager
pnpm add small-events-manager
yarn add small-events-manager
bun add small-events-manager
```

## 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 | 1.0.0 |
| Published | 2020-07-09 |
| First published | 2020-07-09 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | drulac |

## Links

- npm: https://www.npmjs.com/package/small-events-manager
- Repository: https://github.com/Drulac/eventsManager
- Homepage: https://github.com/Drulac/eventsManager#readme
- Issues: https://github.com/Drulac/eventsManager/issues
- npm.io page: https://npm.io/package/small-events-manager

## Recent versions

- 1.0.0 (latest) — 2020-07-09

## README

# eventsManager
A little module to add events to your class

```js
const events = require('small-events-manager');
```

declare the `on` method of the event class as the on method of your class :
```js
self.on = events.on;
```

use the on method to add function on events :
```js
yourClass.on("yourEvent", (data)=>{
	//your code here
});
```

and into your class, use the run method to run an event, with your data :
```js
events.run("yourEvent", data);
```

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