consolidated-events
Manage multiple event handlers using few event listeners.
Example
import { addEventListener } from 'consolidated-events';
const removeEventListener = addEventListener(
window,
'scroll',
() => { console.log('scrolling') },
{ passive: true }
);
...
removeEventListener();