node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

bacon.fromonevent

Legacy event binding plugin for <a href="https://github.com/baconjs/bacon.js">Bacon.js</a>.

bacon.fromonevent

Legacy event binding plugin for Bacon.js.

Quite useless at desktop/mobile, but certainly useful in a huge variety of embedded browsers (e.g. Set-Top Boxes and SmartTVs), which component APIs use 'on-eventname' style for their callbacks.

btn = document.getElementById("btn")
Bacon.fromOnEvent(btn, "onclick").onValue(function(){
  //callback here 
})