on-off

DOM Event Binding Library

DOM Event Binding Library

$ npm install on-off
on = require('on-off')
off = on.off
 
on(document.body, hello)
 
later off(document.body, hello)
 
function hello () {
  console.log('hello!')
}