# evently

> simple event-like function stacks

Latest version **2.3.1** (published 2013-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install evently
pnpm add evently
yarn add evently
bun add evently
```

## 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 | 2.3.1 |
| Published | 2013-11-27 |
| First published | 2013-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | david tudury |
| Maintainers | dtudury |
| Keywords | event, signal, function, stack |

## Links

- npm: https://www.npmjs.com/package/evently
- Repository: https://github.com/dtudury/evently
- Issues: https://github.com/dtudury/evently/issues
- npm.io page: https://npm.io/package/evently

## 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.3.1 (latest) — 2013-11-27
- 2.3.0 — 2013-11-27
- 2.2.1 — 2013-11-22
- 2.2.0 — 2013-11-22
- 2.1.4 — 2013-11-22
- 2.1.2 — 2013-11-21
- 2.1.1 — 2013-11-21
- 1.1.0 — 2013-11-13
- 1.0.0 — 2013-11-13

## README

# evently

  simpler faster lighter single-argument event-like function stacks for javascript

  also available in a slightly faster [singleton version](https://github.com/dtudury/static-evently)

  [![Build Status](https://travis-ci.org/dtudury/evently.png)](https://travis-ci.org/dtudury/evently)

## Installation

    $ npm install evently

## Usage

```js
var evently = require('evently');

var d = new evently.Dispatcher();

function log(a) {
    console.log("triggered with " + a);
}

d.on("a", log);
d.dispatch("a", [1, 2]); // "triggered with 1,2"

d.on("b", log);
d.off("b", log);
d.dispatch("b", "three"); // no effect

d.once('c', log);
d.dispatch("c", 4); // "triggered with 4"
d.dispatch("c", {a:5, b:6});

d.stopListening();
d.dispatch("a", [1, 2]); // no effect
d.dispatch("b", "three"); // no effect
d.dispatch("c", {a:5, b:6}); // no effect
```

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