light-pub-sub
v0.1.0
Published
Simple pub/sub for Javascript
Downloads
1
Readme
light-pub-sub
Light pub/sub library for Javascript
Quick Start
const broadcaster = require('light-pub-sub')
// subscribe
broadcaster.on('abc', ({ data }) => {
console.log(data) // 123
})
// publish
broadcaster.emit('abc', 123)