# events-returnvalue

> node.js EventEmitter with return value and async

Latest version **2.0.3** (published 2022-10-27) · ISC license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2022-10-27 |
| First published | 2018-05-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 57.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bluelovers |
| Maintainers | bluelovers |
| Keywords | event, eventDispatcher, eventEmitter, events, listeners, trigger, async, returnValue, create-by-yarn-tool, create-by-tsdx |

## Links

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

## 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.3 (latest) — 2022-10-27
- 2.0.2 — 2022-09-12
- 2.0.1 — 2022-09-12
- 1.0.0 — 2018-05-28

## README

# events-returnvalue

    node.js EventEmitter with return value

```ts
import EventEmitter from 'events-returnvalue';

let ev = new EventEmitter();

ev.on('test', function (cacheEvent)
{
	cacheEvent.returnValue = 777;
});

let r = ev.emit('test');

console.log(r);
// => { triggered: true, name: 'test', returnValue: 777 }
```

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