# node-emitter

> Fast NodeJS event emitter

Latest version **0.0.1** (published 2021-12-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-emitter
pnpm add node-emitter
yarn add node-emitter
bun add node-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.0.1 |
| Published | 2021-12-31 |
| First published | 2021-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dragonfirefox |
| Maintainers | octafirefox |
| Keywords | node, event, eventemitter |

## Links

- npm: https://www.npmjs.com/package/node-emitter
- Repository: https://github.com/dragonfirefox/node-emitter
- Homepage: https://github.com/dragonfirefox/node-emitter#readme
- Issues: https://github.com/dragonfirefox/node-emitter/issues
- npm.io page: https://npm.io/package/node-emitter

## 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

- 0.0.1 (latest) — 2021-12-31

## README

# node-emitter
A fast and small NodeJS event emitter, replacement of NodeJS default events, just plug and play.

# Important
Before you get into this, there are certain limitations by using it.

- There are no support for this methods `setMaxListeners`, `getMaxListeners`, `prependListener`, `prependOnceListener`.

- Doesn't have `lisentersCount` to apply it, you need to do `listeners.length` return an array length.

- Doesn't throw anything, creating mistakes it'll return nothing any info about the event.

# Installation

`$ npm install --save node-emitter`

# Usage

```js
const EventEmitter = require("node-emitter");

const ee = new EventEmitter();

ee.on("myEvent", () => {
  console.log("You just called my event");
});

ee.emit('myEvent');

ee.removeListener("myEvent");
ee.addListener("myEvent", fun => { });
```

# Support
[Join Discord](https://discord.gg/UrAFxHnXN3)
[MIT](https://github.com/dragonfirefox/node-emitter/blob/main/LICENSE)

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