# events.io

> npm i events.io

Latest version **2.0.4** (published 2018-01-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install events.io
pnpm add events.io
yarn add events.io
bun add events.io
```

## 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.0.4 |
| Published | 2018-01-13 |
| First published | 2017-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Snytko Maksim |
| Maintainers | maksim_snytko |
| Keywords | events, speed |

## Links

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

## 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.4 (latest) — 2018-01-13
- 2.0.3 — 2017-12-10
- 2.0.2 — 2017-12-06
- 2.0.1 — 2017-12-05
- 2.0.0 — 2017-12-03
- 1.0.2 — 2017-11-27
- 1.0.1 — 2017-11-27
- 1.0.0 — 2017-11-25

## README

# Install
npm i events.io

```js
const { performance } = require('perf_hooks');
const Events = require('events')
const Eventsio = require('events.io')

const e = new Events;
const eio = new Eventsio;

e_count = 0;
e.on('event', v => {
    e_count++;
})
eio_count = 0;
eio.on('event', v => {
    eio_count++;
})

performance.mark('A');
for(var i = 0; i < 1000000000; i++) {
    e.emit('event', i);
}
performance.mark('B');
performance.measure('A to B', 'A', 'B');
console.log(performance.getEntriesByName('A to B')[0].duration, e_count);

performance.mark('A1');
for(var i = 0; i < 1000000000; i++) {
    eio.emit('event', i);
}
performance.mark('B1');
performance.measure('A1 to B1', 'A1', 'B1');
console.log(performance.getEntriesByName('A1 to B1')[0].duration, eio_count);
```

17028.395446 1000000000 vs 2687.976419 1000000000 more 6x

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