# @lijuhong1981/jsevents

> Event system with EventDispatcher, EventEmitter and EventSubscriber.

Latest version **1.2.13** (published 2026-09-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lijuhong1981/jsevents
pnpm add @lijuhong1981/jsevents
yarn add @lijuhong1981/jsevents
bun add @lijuhong1981/jsevents
```

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.2.13 |
| Published | 2026-09-24 |
| First published | 2022-09-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lijuhong1981 |
| Maintainers | lijuhong1981_pci |

## Links

- npm: https://www.npmjs.com/package/@lijuhong1981/jsevents
- Repository: https://github.com/lijuhong1981/jslibs
- Homepage: https://github.com/lijuhong1981/jslibs#readme
- Issues: https://github.com/lijuhong1981/jslibs/issues
- npm.io page: https://npm.io/package/@lijuhong1981/jsevents

## Dependencies (2)

- [@lijuhong1981/jscheck](https://npm.io/package/@lijuhong1981/jscheck.md) ^1.1.7
- [@lijuhong1981/jsdestroy](https://npm.io/package/@lijuhong1981/jsdestroy.md) ^1.2.7

## Recent versions

- 1.2.13 (latest) — 2026-09-24
- 1.2.12 — 2026-04-01
- 1.2.11 — 2026-03-16
- 1.2.10 — 2026-03-16
- 1.2.9 — 2026-03-16
- 1.2.8 — 2025-10-09
- 1.2.7 — 2025-08-11
- 1.2.6 — 2025-07-24
- 1.2.5 — 2025-07-24
- 1.2.4 — 2025-07-24
- 1.2.3 — 2025-06-26
- 1.2.2 — 2025-04-14
- 1.2.1 — 2025-04-14
- 1.2.0 — 2025-04-14
- 1.1.27 — 2024-07-31
- … 38 more at https://npm.io/package/@lijuhong1981/jsevents/versions

## README

# @lijuhong1981/jsevents

> 事件系统，提供 `EventDispatcher`（事件分发）、`EventEmitter`（发布/订阅）与 `EventSubscriber`（事件封装），均支持 `Destroyable` 销毁。

## 安装

```bash
npm install @lijuhong1981/jsevents
```

## 导出

- `EventDispatcher` — 事件分发管理器（`addEventListener`/`removeEventListener`/`dispatch`/`dispatchEvent` 等）
- `EventEmitter` — 发布/订阅模式
- `EventSubscriber` — 单类型事件的监听器封装

监听选项 `options`：

| 项 | 说明 |
| --- | --- |
| `scope` | 回调函数的 `this` 指针对象 |
| `once` | 是否单次事件（触发后自动移除） |

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