1.0.0 • Published 7 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-eventbusExample
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
7 years ago