@daisugi/nekobasu
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@daisugi/nekobasu

version npm downloads bundlephobia

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

🔝 back to top

Other projects

Meet the ecosystem

🔝 back to top

License

MIT

Package Sidebar

Install

npm i @daisugi/nekobasu

Weekly Downloads

25

Version

0.1.2

License

MIT

Unpacked Size

15.9 kB

Total Files

10

Last publish

Collaborators

  • sviridoff
  • mawrkus