most-from-chrome-event
v0.1.4
Published
Create a stream source from a Chrome event emitter.
Downloads
10
Readme
listen to events from apis available to chrome plugins
Pass the domain that you would normally call addListener
/removeListener
on
to create a stream of updates.
example:
import fromChromeEvent from "most-from-chrome-event"
var messages = fromChromeEvent(chrome.runtime.onMessage)
messages.forEach(function (message) {
console.log("message", message)
})