1.0.0 • Published 5 years ago
otto-eventbus v1.0.0
Otto EventBus
Otto EventBus is a simple way to add code smells into your projects!
Usage
npm install otto-eventbus
Example
import Events from 'otto-events'; // or require, whatever
// Add new event.
const myEvent = Events.add('sayHello', name => alert('Hi ' + name + '!'));
// Call event
Events.fire('sayHello', 'Otto');
// Remove event.
Events.remove(myEvent);
1.0.0
5 years ago