0.1.2 โข Published 4 months ago
@daisugi/nekobasu v0.1.2
@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