1.0.6 • Published 2 years ago

@tbnritzdoge/events v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@tbnritzdoge/events

usage

nodejs

import EventEmitter from '@tbnritzdoge/events';
const emitter = new EventEmitter();
emitter.on('cheese', (gluten) => {
    if (Array.isArray(gluten) === true) gluten[gluten.length] = gluten[0];
});
emitter.emit('cheese', ['a', 'b', 'c']);

deno

import EventEmitter from 'https://unpkg.com/@tbnritzdoge/events@1.0.5/dist/index.js';
const emitter = new EventEmitter();
emitter.on('cheese', (gluten) => {
    if (Array.isArray(gluten) === true) gluten[gluten.length] = gluten[0];
});
emitter.emit('cheese', ['a', 'b', 'c']);

benchmarks

drip x 532,799 ops/sec ±1.29% (291 runs sampled)
@tbnritzdoge/events x 1,419,332 ops/sec ±0.32% (293 runs sampled)
native x 1,095,307 ops/sec ±0.59% (290 runs sampled)
eventemitter3 x 513,031 ops/sec ±0.21% (292 runs sampled)

bench

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago