How to use the eventemitter2.EventEmitter function in eventemitter2

To help you get started, we’ve selected a few eventemitter2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github medikoo / event-emitter / benchmark / single-on.js View on Github external
native = (function () {
	var ee = require('events');
	return (new ee.EventEmitter()).on('test', function () { return arguments; });
}());
github sx1989827 / DOClever / Desktop / node_modules / event-emitter / benchmark / many-on.js View on Github external
native = (function () {
	var ee = require('events');
	ee = new ee.EventEmitter();
	ee.on('test', function () { return arguments; });
	ee.on('test', function () { return arguments; });
	return ee.on('test', function () { return arguments; });
}());
github sx1989827 / DOClever / Desktop / node_modules / event-emitter / benchmark / single-on.js View on Github external
native = (function () {
	var ee = require('events');
	return (new ee.EventEmitter()).on('test', function () { return arguments; });
}());
github medikoo / event-emitter / benchmark / many-on.js View on Github external
native = (function () {
	var ee = require('events');
	ee = new ee.EventEmitter();
	ee.on('test', function () { return arguments; });
	ee.on('test', function () { return arguments; });
	return ee.on('test', function () { return arguments; });
}());

eventemitter2

A feature-rich Node.js event emitter implementation with namespaces, wildcards, TTL, async listeners and browser/worker support.

MIT
Latest version published 2 years ago

Package Health Score

79 / 100
Full package analysis