callback-emitter
v1.0.1
Published
Downloads
3
Readme
callback-emitter
callback-emitter it allows to manage the communication through events implemented with callbacks
import
import { CallbackEmitter } = from 'callback-emitter';
emit
CallbackEmitter.emit('event' , 'hello world');
on
CallbackEmitter.on('event' , console.log);