Nobody Pays (for) Magazines
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

consolidated-events

2.0.2 • Public • Published

consolidated-events Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

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();

install

npm i consolidated-events

Downloadsweekly downloads

233,116

version

2.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability