1.0.1 • Published 4 years ago
tabeventbus v1.0.1
tabEventBus
example
// yarn add tabeventbus or npm i -S tabeventbus
const eventBus = new tabeventbus.StorageEventBus({
isDev: () => true
})
eventBus.on('someEvent', ([data]) => {
console.log(data)
})
eventBus.emit('someEvent', {msg: 'hello world'})