Neat Paraskavedekatriaphobia's Meaning

    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

    1,054,364

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    40.5 kB

    Total Files

    23

    Last publish

    Collaborators

    • lencioni