# singleton-event-emitter

> A singleton instance of node EventEmitter. If it is required in multiple node packages, it will return the same instance of EvenetEmitter.

Latest version **0.0.1** (published 2019-12-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install singleton-event-emitter
pnpm add singleton-event-emitter
yarn add singleton-event-emitter
bun add singleton-event-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 | 2019-12-03 |
| First published | 2019-12-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Barta Gergo |
| Maintainers | bartag512 |
| Keywords | event, emitter, global, singleton |

## Links

- npm: https://www.npmjs.com/package/singleton-event-emitter
- Repository: https://github.com/BartaG512/singleton-event-emitter
- Homepage: https://github.com/BartaG512/singleton-event-emitter#readme
- Issues: https://github.com/BartaG512/singleton-event-emitter/issues
- npm.io page: https://npm.io/package/singleton-event-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) — 2019-12-03

## README

# singleton-event-emitter

A singleton instance of node EventEmitter. If it is required in multiple node packages, it will return the same instance of EvenetEmitter.
Can be used to emit global debug events.

## Installation

```bash
npm install singleton-event-emitter
```

## Usage

```js
// emitter.js
const singletonEvenetEmitter = require('singleton-evenet-emitter');
singletonEvenetEmitter.emit('someEvent')

// listener.js
const singletonEvenetEmitter = require('singleton-evenet-emitter');
singletonEvenetEmitter.on('someEvent', () => {
	console.log("someEvenet");
})
```

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