# @vladfrangu/async_event_emitter

> An event emitter implementation with async support in mind

Latest version **2.4.7** (published 2025-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vladfrangu/async_event_emitter
pnpm add @vladfrangu/async_event_emitter
yarn add @vladfrangu/async_event_emitter
bun add @vladfrangu/async_event_emitter
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.4.7 |
| Published | 2025-10-04 |
| First published | 2022-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=v14.0.0 |
| Dependencies | 0 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Vlad Frangu <me@vladfrangu.dev> |
| Maintainers | vladfrangu |
| Keywords | event emitter, async, event, emitter |

## Links

- npm: https://www.npmjs.com/package/@vladfrangu/async_event_emitter
- Repository: https://github.com/vladfrangu/async_event_emitter
- Issues: https://github.com/vladfrangu/async_event_emitter/issues
- npm.io page: https://npm.io/package/@vladfrangu/async_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

- 2.4.7 (latest) — 2025-10-04
- 2.4.8-next.67442fb.0 (next) — 2025-11-16
- 2.4.8-next.d8eb38f.0 — 2025-11-09
- 2.4.8-next.537b9de.0 — 2025-11-02
- 2.4.9-2.0 — 2025-10-26
- 2.4.8-next.507a464.0 — 2025-10-26
- 2.4.8-1.0 — 2025-10-25
- 2.4.8-next.04eab05.0 — 2025-10-19
- 2.4.8-next.044bce0.0 — 2025-10-17
- 2.4.8-next.3de30ce.0 — 2025-10-05
- 2.4.8-next.7f992fc.0 — 2025-10-05
- 2.4.8-next.015ac81.0 — 2025-10-04
- 2.4.8-next.62cdb18.0 — 2025-10-04
- 2.4.8-next.2e49f3f.0 — 2025-10-04
- 2.4.8-next.ebdc38c.0 — 2025-10-04
- … 61 more at https://npm.io/package/@vladfrangu/async_event_emitter/versions

## README

<div align="center">

# @vladfrangu/async_event_emitter

**Simple to use event emitter implementation with async support in mind.**

[![GitHub](https://img.shields.io/github/license/vladfrangu/async_event_emitter)](https://github.com/vladfrangu/async_event_emitter/blob/main/LICENSE.md)
[![codecov](https://codecov.io/gh/vladfrangu/async_event_emitter/branch/main/graph/badge.svg?token=0MSAyoZNxz)](https://codecov.io/gh/vladfrangu/async_event_emitter)
[![npm](https://img.shields.io/npm/v/@vladfrangu/async_event_emitter?color=crimson&logo=npm&style=flat-square)](https://www.npmjs.com/package/@vladfrangu/async_event_emitter)

</div>

## Description

A very small, lightweight and simple re-implementation of event emitters, with support for async event handlers in mind.

> **Note**: `@vladfrangu/async_event_emitter` requires Node.js v14 or higher to work, or a browser that has async/await support.

## Features

-   TypeScript friendly
-   Offers CJS, ESM and UMD builds
-   Consistent interface with what is expected from an event emitter
-   Simple handling of asynchronous event handlers to allow waiting for their execution to finish if you want to exit the process

## Buy me some doughnuts

Most of my projects are and always will be open source, even if I don't get donations. That being said, I know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!

I accept donations through Ko-fi, PayPal, Patreon and GitHub Sponsorships. You can use the buttons below to donate through your method of choice.

|   Donate With   |                         Address                          |
| :-------------: | :------------------------------------------------------: |
| GitHub Sponsors |   [Click Here](https://github.com/sponsors/vladfrangu)   |
|      Ko-fi      |       [Click Here](https://ko-fi.com/wolfgalvlad)        |
|     Patreon     |       [Click Here](https://patreon.com/vladfrangu)       |
|     PayPal      | [Click Here](https://www.paypal.com/paypalme/franguvlad) |

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

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