# consolidated-events

> Manage multiple event handlers using few event listeners

Latest version **2.0.2** (published 2018-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install consolidated-events
pnpm add consolidated-events
yarn add consolidated-events
bun add consolidated-events
```

## Health

**Score 28/100 (F)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2018-06-18 |
| First published | 2016-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/consolidated-events) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | Joe Lencioni |
| Maintainers | lencioni |
| Keywords | events, performance |

## Links

- npm: https://www.npmjs.com/package/consolidated-events
- Repository: https://github.com/lencioni/consolidated-events
- Homepage: https://github.com/lencioni/consolidated-events#readme
- Issues: https://github.com/lencioni/consolidated-events/issues
- npm.io page: https://npm.io/package/consolidated-events

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 2.0.2 (latest) — 2018-06-18
- 2.0.0 — 2018-06-18
- 1.1.1 — 2017-08-21
- 1.1.0 — 2017-06-15
- 1.0.1 — 2016-11-09
- 1.0.0 — 2016-11-09

## README

# consolidated-events <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]


Manage multiple event handlers using few event listeners.

## Example

```js
import { addEventListener } from 'consolidated-events';

const removeEventListener = addEventListener(
  window,
  'scroll',
  () => { console.log('scrolling') },
  { passive: true }
);

...

removeEventListener();
```

[npm-version-svg]: http://versionbadg.es/lencioni/consolidated-events.svg
[package-url]: https://npmjs.org/package/consolidated-events
[travis-svg]: https://travis-ci.org/lencioni/consolidated-events.svg
[travis-url]: https://travis-ci.org/lencioni/consolidated-events
[deps-svg]: https://david-dm.org/lencioni/consolidated-events.svg
[deps-url]: https://david-dm.org/lencioni/consolidated-events
[dev-deps-svg]: https://david-dm.org/lencioni/consolidated-events/dev-status.svg
[dev-deps-url]: https://david-dm.org/lencioni/consolidated-events#info=devDependencies
[license-image]: http://img.shields.io/npm/l/consolidated-events.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/consolidated-events.svg
[downloads-url]: http://npm-stat.com/charts.html?package=consolidated-events
[npm-badge-png]: https://nodei.co/npm/consolidated-events.png?downloads=true&stars=true

---
_Source: https://npm.io/package/consolidated-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
