avant

Cross-browser JavaScript events

avant

$ npm install avant --save
var avant = require('avant');
avant.listen(document, 'click', function(event) {
  console.log(event)
});
  • Add an event listener for the specified event type
  • Remove the event listener for the specified event type
  • Detect if the node supports the event type
  • boolean

MIT