Alias a DOM node's .addEventListener()
to .on()
.
$ npm install dom-on
const on = require('dom-on')
const button = document.createElement('button')
on(button)
button.on('click', () => console.log('oOOoooOOoooO!'))
- dom-wrap - Make dom elements easier to work with