Skip to content

npm-dom/dom-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dom-on

NPM version build status Test coverage Downloads js-standard-style

Alias a DOM node's .addEventListener() to .on().

Installation

$ npm install dom-on

Usage

const on = require('dom-on')

const button = document.createElement('button')
on(button)

button.on('click', () => console.log('oOOoooOOoooO!'))

See Also

  • dom-wrap - Make dom elements easier to work with

License

MIT

About

Alias DOM node's .addEventListener() to .on()

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published