# on-everything

> Catch every event an EventEmitter publishes

Latest version **1.0.0** (published 2015-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install on-everything
pnpm add on-everything
yarn add on-everything
bun add on-everything
```

## 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-07-12 |
| First published | 2015-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stephen Sawchuk |
| Maintainers | stephenplusplus |
| Keywords | stream, event, eventemitter, handler, wildcard, catchall |

## Links

- npm: https://www.npmjs.com/package/on-everything
- npm.io page: https://npm.io/package/on-everything

## Dependencies (1)

- [stubs](https://npm.io/package/stubs.md) ^2.0.0

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

## README

# on-everything

> Catch every event an [EventEmitter](https://nodejs.org/api/events.html) publishes.

## Use

```sh
$ npm install --save on-everything
```
```js
var onEverything = require('on-everything');
```

## Example

```js
var onEverything = require('on-everything');
var request = require('request');

onEverything(request('http://yahoo.com'), function (eventName) {
  console.log(eventName);
});
```
```sh
$ node ./
request
socket
redirect
request
socket
response
complete
end
```

## ee = onEverything(ee, onEvent);


### ee

Type: [`EventEmitter`](https://nodejs.org/api/events.html)

This is returned from the function to allow chaining.


### onEvent(eventName, [...])

Type: `Function`

Called on every emitted event.

#### eventName

Name of the event emitted.

#### ...

The original arguments passed to the event.


## Related

- [stream-forward](https://github.com/stephenplusplus/stream-forward)

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