@maximdevoir/event-listener

0.11.6 • Public • Published

Event Listener

Event Listener handles the adding and removing of events throughout your document. Works with old browsers that use attachEvent and detachEvent (IE 8 and below).

license bundlephobia minzip npm dependents downloads Coverage Status Known Vulnerabilities

Installation

yarn add @maximdevoir/event-listener

Usage

import eventListener from '@maximdevoir/event-listener'

eventListener.add(window, 'focus', function() { ... })

eventListener.remove(window, 'focus', function() { ... })

Contributing

Cutting a Release

The release workflow will automatically publish to NPM when you publish a release via the GitHub UI

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @maximdevoir/event-listener

Weekly Downloads

1

Version

0.11.6

License

MIT

Unpacked Size

13 kB

Total Files

5

Last publish

Collaborators

  • maximdevoir