# active-event-stack

> Manage groups of event handlers so that only the last group can respond to events

Latest version **1.0.0** (published 2015-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install active-event-stack
pnpm add active-event-stack
yarn add active-event-stack
bun add active-event-stack
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-28 |
| First published | 2015-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Qiming Weng |
| Maintainers | qiming |
| Keywords | active, event, stack |

## Links

- npm: https://www.npmjs.com/package/active-event-stack
- Repository: https://github.com/qimingweng/active-event-stack
- Issues: https://github.com/qimingweng/active-event-stack/issues
- npm.io page: https://npm.io/package/active-event-stack

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3
- [immutable](https://npm.io/package/immutable.md) ^3.7.4

## 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

- 1.0.0 (latest) — 2015-06-28

## README

# Active Event Stack

This maintains one central stack, where each item is a series of event handlers. This stack allows multiple dialogs to overlap, but a keyboard action to only affect the top item.

# Usage

```javascript
var eventStack = require('active-event-stack');

// On mounting or creating an element, add a new listenable (a series of event listeners)
this.eventToken = eventStack.addListenable([
  ['click', this.clickHandler],
  ['keydown', this.keydownHandler]
]);

// On dismounting or removing an element, remove the listenable by its token
eventStack.removeListenable(this.eventToken);
```

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