# @protobufjs/eventemitter

> A minimal event emitter.

Latest version **1.1.1** (published 2026-05-22) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @protobufjs/eventemitter
pnpm add @protobufjs/eventemitter
yarn add @protobufjs/eventemitter
bun add @protobufjs/eventemitter
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; high quality score; popular repo.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2026-05-22 |
| First published | 2016-12-11 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10586 |
| Author | Daniel Wirtz |
| Maintainers | dcode, protobufjs, google-wombot |

## Links

- npm: https://www.npmjs.com/package/@protobufjs/eventemitter
- Repository: https://github.com/dcodeIO/protobuf.js
- Homepage: https://github.com/dcodeIO/protobuf.js#readme
- Issues: https://github.com/dcodeIO/protobuf.js/issues
- npm.io page: https://npm.io/package/@protobufjs/eventemitter

## Recent versions

- 1.1.1 (latest) — 2026-05-22
- 1.1.0 — 2017-01-25
- 1.0.5 — 2017-01-03
- 1.0.4 — 2016-12-20
- 1.0.3 — 2016-12-15
- 1.0.2 — 2016-12-12
- 1.0.1 — 2016-12-11
- 1.0.0 — 2016-12-11

## README

@protobufjs/eventemitter
========================
[![npm](https://img.shields.io/npm/v/@protobufjs/eventemitter.svg)](https://www.npmjs.com/package/@protobufjs/eventemitter)

A minimal event emitter.

API
---

* **new EventEmitter()**<br />
  Constructs a new event emitter instance.

* **EventEmitter#on(evt: `string`, fn: `function`, [ctx: `Object`]): `EventEmitter`**<br />
  Registers an event listener.

* **EventEmitter#off([evt: `string`], [fn: `function`]): `EventEmitter`**<br />
  Removes an event listener or any matching listeners if arguments are omitted.

* **EventEmitter#emit(evt: `string`, ...args: `*`): `EventEmitter`**<br />
  Emits an event by calling its listeners with the specified arguments.

**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)

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