Skip to content

Latest commit

 

History

History

nekobasu

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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