Something similar to Node.js EventEmitter.
npm install @dkh-dev/event-emitter
import EventEmitter from '@dkh-dev/event-emitter';
const emitter = new EventEmitter();
emitter.on('test', console.log);
emitter.emit('test', { error: false, result: [ 'Yay!' ] });
// => { error: false, result: [ 'Yay!' ] }