EventListener handles the adding and removing of events throughout your document. Works with old browsers that use attachEvent and detachEvent (IE 8 and below).
npm install @maximdevoir/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).






``javascript`
yarn add @maximdevoir/event-listener
`javascript
import eventListener from '@maximdevoir/event-listener'
eventListener.add(window, 'focus', function() { ... })
eventListener.remove(window, 'focus', function() { ... })
``
The release workflow will automatically publish to NPM when you publish a
release via the GitHub
UI