eevent

1.0.5 • Public • Published

eevent

A small library to get listeners added in elements.

Usage

After installation the only thing you need to do is import the module:

import 'eevent';

const dom1 = document.getElementById('eevent')
dom1.addEventListener('click', (e) => {
  console.log('click1')
})
console.log(dom1.getAllEvents())
console.log(dom1.getAllEventListeners())
  • getAllEventListeners: Gets a map of all the listeners.
  • getAllEvents: Gets all the listener's names.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i eevent

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

10.9 kB

Total Files

5

Last publish

Collaborators

  • leopordlau