# bare-events

> Event emitters for JavaScript

Latest version **2.9.2** (published 2026-08-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bare-events
pnpm add bare-events
yarn add bare-events
bun add bare-events
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.9.2 |
| Published | 2026-08-26 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 9 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-events
- Repository: https://github.com/holepunchto/bare-events
- Homepage: https://github.com/holepunchto/bare-events#readme
- Issues: https://github.com/holepunchto/bare-events/issues
- npm.io page: https://npm.io/package/bare-events

## Recent versions

- 2.9.2 (latest) — 2026-08-26
- 2.9.1 — 2026-06-02
- 2.9.0 — 2026-06-02
- 2.8.3 — 2026-05-14
- 2.8.2 — 2025-11-06
- 2.8.1 — 2025-10-22
- 2.8.0 — 2025-10-10
- 2.7.0 — 2025-09-17
- 2.6.1 — 2025-08-08
- 2.6.0 — 2025-07-09
- 2.5.4 — 2025-01-10
- 2.5.3 — 2025-01-07
- 2.5.2 — 2025-01-06
- 2.5.1 — 2025-01-03
- 2.5.0 — 2024-09-24
- … 16 more at https://npm.io/package/bare-events/versions

## README

# bare-events

Event emitters for JavaScript.

```
npm install bare-events
```

## Usage

```js
const EventEmitter = require('bare-events')

const e = new EventEmitter()

e.on('hello', function (data) {
  console.log(data)
})

e.emit('hello', 'world')
```

## License

Apache-2.0

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