@daisugi/nekobasu
v0.1.2
Published
Nekobasu is a lightweight, easy to use, asynchronous and efficient EventBus implementation.
Downloads
129
Readme
@daisugi/nekobasu
This project is part of the @daisugi monorepo.
Nekobasu is a lightweight, easy to use, asynchronous and efficient EventBus implementation.
🌟 Features
- 💡 Minimum size overhead.
- ⚡️ 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
import { Nekobasu } from '@daisugi/nekobasu';
const nekobasu = new Nekobasu();
nekobasu.subscribe('foo.*', (event) => {
console.log(event);
});
nekobasu.dispatch('foo.bar');
Table of contents
Install
Using npm:
npm install @daisugi/nekobasu
Using yarn:
yarn add @daisugi/nekobasu