# event-bus
**Repository Path**: guobinyong/event-bus
## Basic Information
- **Project Name**: event-bus
- **Description**: event-bus 是基于原生 EventTarget 类来开发的事件总线,无依赖(零依赖),充分复用原生的能力增加了易用性。拥有极少的代码就实现了 EventBus 的核心功能,而且还具备精确且完善的 TypeScript 类型系统。
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-05-26
- **Last Updated**: 2026-02-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[git仓库]: https://github.com/GuoBinyong/event-bus
[发行地址]: https://github.com/GuoBinyong/event-bus/releases
[issues]: https://github.com/GuoBinyong/event-bus/issues
[码云仓库]: https://gitee.com/guobinyong/event-bus
[教程]: ./doc/教程.md
[API接口文档]: ./doc/api/index.md
**目录:**
- [1. 背景](#1-背景)
- [2. 简介](#2-简介)
- [3. 安装方式](#3-安装方式)
- [3.1. 方式1:通过 npm 安装](#31-方式1通过-npm-安装)
- [3.2. 方式3:通过`
```
2. 使用全局的 `EventBus`
```html
```
# 4. 教程
详情跳转至[教程][]
# 5. API接口文档
详情跳转至[API接口文档][]