
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
Event listener orchestration. Makes it easy to bulk unbind listeners that were
set withing a context. This is especially useful for unmounting listeners in
React's componentWillUnmount lifecycle event.
$ npm i --save ensemble
var Emitter = require('events').EventEmitter;
var ensemble = require('ensemble');
/**
* Wrap an event emitter.
*/
var emitter = ensemble(new Emitter);
/**
* Attach listeners to the emitter.
*/
emitter.on('foo', function() {});
/**
* Remove all listeners registered
* in the wrapper from the emitter.
*/
emitter.removeListeners()
Wrap an event emitter in an ensemble object.
var Emitter = require('events').EventEmitter;
var ensemble = require('ensemble');
var myEmitter = ensemble(new Emitter);
Attach an event listener to the wrapped emitter. Behaves identical to Node's built in listener function.
myEmitter.on('some_event', function(val) {
console.log(val);
});
Remove all listeners that were attached within this context to the emitter.
myEmitter.removeListeners();
MIT © Yoshua Wuyts
FAQs
Event listener orchestration
We found that ensemble demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.