A light weight event emitter that you can subscribe to an event and emit and event, you can also unsubscribe too.
- subscribe
- emit
- unsubscribe
const ne = require('nano-emit')
ne.subscribe(function (event) {
console.log(event)
})
ne.emit('Beep Boop')
npm install nano-emit
Great for a minimum web app. See nano-web.