# @infinitylist/emitter

> Custom event emitter that creates types based off of an interface

Latest version **0.1.7-alpha.7** (published 2023-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @infinitylist/emitter
pnpm add @infinitylist/emitter
yarn add @infinitylist/emitter
bun add @infinitylist/emitter
```

## 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.1.7-alpha.7 |
| Published | 2023-09-05 |
| First published | 2023-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Toxic Dev |
| Maintainers | rootspring, infinitylist |

## Links

- npm: https://www.npmjs.com/package/@infinitylist/emitter
- Repository: https://github.com/InfinityBotList/node-sdk
- Homepage: https://infinitybotlist.github.io/node-sdk/modules/emitter_src.html
- Issues: https://github.com/InfinityBotList/node-sdk/issues
- npm.io page: https://npm.io/package/@infinitylist/emitter

## Dependencies (2)

- [events](https://npm.io/package/events.md) ^3.3.0
- [typescript](https://npm.io/package/typescript.md) ^5.1.6

## Recent versions

- 0.1.7-alpha.7 (latest) — 2023-09-05
- 0.1.7-alpha.6 — 2023-08-28
- 0.1.6 — 2023-08-22
- 0.1.0 — 2023-08-22
- 0.0.3 — 2023-08-22
- 0.0.2 — 2023-08-20
- 0.0.1 — 2023-08-20

## README

# @infinitylist/emitter
Event emitter that creates types based off of an interface

---

## Usage Example

> More examples and documentation coming soon

### Node

```js
const { EventEmitter } = require("@infinitybots/emitter");

const ee = new EventEmitter();

ee.on('message', function(text) {
    console.log(text);
});

ee.on('error', function(err) {
    console.error(`Emitter test failed: ${err.stack}`);
})

ee.emit('message', 'Emitter tests complete');
```

### ES6
```js
import { EventEmitter } from "@infinitybots/emitter";

const ee = new EventEmitter();

ee.on('message', function(text) {
    console.log(text);
});

ee.on('error', function(err) {
    console.error(`Emitter test failed: ${err.stack}`);
})

ee.emit('message', 'Emitter tests complete');
```

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