Skip to content

An event interceptor allowing you to get all the event listeners of an element

License

Notifications You must be signed in to change notification settings

ulivz/get-event-listeners

Repository files navigation

@ulivz/get-event-listeners

NPM version NPM downloads

Usage

In order to capture all the events, you need to introduce this script in the head of your HTML:

  • From CDN:
<script src="https://unpkg.com/@ulivz/get-event-listeners@0.0.1/dist/@ulivz/get-event-listeners.min.js">
  • From local file:
<script src="./get-event-listeners.min.js">

API

getEventListeners(HTMLElement)

Get event listenrs of a particular element

getAllEventListeners()

Get event listenrs of all elements

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

@ulivz/get-event-listeners © ULIVZ, Released under the MIT License.
Authored and maintained by ULIVZ with help from contributors (list).

github.com/ulivz · GitHub @ULIVZ · Twitter @_ulivz

About

An event interceptor allowing you to get all the event listeners of an element

Resources

License

Stars

Watchers

Forks

Packages