# @trenskow/async-event-emitter

> A small library for asynchronous event emitters.

Latest version **0.1.155** (published 2026-09-21) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @trenskow/async-event-emitter
pnpm add @trenskow/async-event-emitter
yarn add @trenskow/async-event-emitter
bun add @trenskow/async-event-emitter
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.155 |
| Published | 2026-09-21 |
| First published | 2022-04-26 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kristian Trenskow |
| Maintainers | trenskow |
| Keywords | event, emitter, async, promise |

## Links

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

## Dependencies (1)

- [@trenskow/parallel](https://npm.io/package/@trenskow/parallel.md) ^0.1.145

## 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.1.155 (latest) — 2026-09-21
- 0.1.154 — 2026-09-21
- 0.1.153 — 2026-09-18
- 0.1.152 — 2026-09-18
- 0.1.151 — 2026-09-18
- 0.1.150 — 2026-09-16
- 0.1.149 — 2026-09-16
- 0.1.148 — 2026-09-16
- 0.1.146 — 2026-09-16
- 0.1.145 — 2026-09-16
- 0.1.144 — 2026-08-03
- 0.1.143 — 2026-08-03
- 0.1.142 — 2026-08-03
- 0.1.141 — 2026-08-03
- 0.1.140 — 2026-08-03
- … 147 more at https://npm.io/package/@trenskow/async-event-emitter/versions

## README

async-event-emitter
----

A small library for asynchronous event emitters.

# Usage

Below is an example on how to use.

````javascript
import EventEmitter from '@trenskow/async-event-emitter';

const emitter = new EventEmitter();

emmiter.on('greeting', async (text) => {
	console.info(text);
});

await emitter.emit('greeting', 'Hello, World!');
````

In the above example `Hello, World!` will be output to the console.

# License

See license in LICENSE

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