@daisugi/nekobasu
Version:
Nekobasu is a lightweight, easy to use, asynchronous and efficient EventBus implementation.
68 lines (46 loc) โข 1.59 kB
Markdown
# @daisugi/nekobasu
[](https://www.npmjs.com/package/@daisugi/nekobasu)

[](https://bundlephobia.com/result?p=@daisugi/nekobasu)
This project is part of the [@daisugi](https://github.com/daisugiland/daisugi) monorepo.
**Nekobasu** is a lightweight, easy to use, asynchronous and efficient EventBus implementation.
## ๐ Features
- ๐ก Minimum size [overhead](https://bundlephobia.com/result?p=@daisugi/nekobasu).
- โก๏ธ Written in TypeScript.
- ๐ฆ Only uses trusted dependencies.
- ๐จ Powerful and agnostic to your code.
- ๐งช Well tested.
- ๐ค Is used in production.
- โก๏ธ Exports ES Modules as well as CommonJS.
## Usage
```js
import { Nekobasu } from '@daisugi/nekobasu';
const nekobasu = new Nekobasu();
nekobasu.subscribe('foo.*', (event) => {
console.log(event);
});
nekobasu.dispatch('foo.bar');
```
## Table of contents
- [@daisugi/nekobasu](#daisuginekobasu)
- [๐ Features](#-features)
- [Usage](#usage)
- [Table of contents](#-table-of-contents)
- [Installation](#installation)
- [Other projects](#other-projects)
- [License](#license)
## Installation
Using npm:
```sh
npm install @daisugi/nekobasu
```
Using pnpm:
```sh
pnpm install @daisugi/nekobasu
```
[:top: Back to top](#-table-of-contents)
## Other projects
[Meet the ecosystem](../../README.md)
[:top: Back to top](#-table-of-contents)
## License
[MIT](../../LICENSE)