
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
good-listener
Advanced tools
A more versatile way of adding & removing event listeners.

You can get it on npm.
npm install good-listener --save
Or bower, too.
bower install good-listener --save
If you're not into package management, just download a ZIP file.
var listen = require('good-listener');
<script src="dist/good-listener.js"></script>
By passing a string selector (see full demo).
listen('.btn', 'click', function(e) {
console.log(e);
});
Or by passing a HTML element (see full demo).
var logo = document.getElementById('logo');
listen(logo, 'click', function(e) {
console.log(e);
});
Or by passing a list of HTML elements (see full demo).
var anchors = document.querySelectorAll('a');
listen(anchors, 'click', function(e) {
console.log(e);
});
By calling the destroy function that returned from previous operation (see full demo).
var listener = listen('.btn', 'click', function(e) {
console.log(e);
});
listener.destroy();
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|---|---|---|---|---|---|
| Latest ✔ | Latest ✔ | Latest ✔ | 9+ ✔ | Latest ✔ | Latest ✔ |
MIT License © Zeno Rocha
EventEmitter3 is a high-performance event emitter for Node.js and the browser. It provides a similar functionality for managing events but is more focused on custom event handling rather than DOM events.
Mitt is a tiny functional event emitter. It is similar to 'good-listener' in that it provides a simple API for managing events, but it is more lightweight and focused on custom events rather than DOM events.
The 'on' package is a utility for adding and removing event listeners. It provides a similar API to 'good-listener' but is more focused on Node.js event handling rather than browser DOM events.
FAQs
A more versatile way of adding & removing event listeners
The npm package good-listener receives a total of 1,236,007 weekly downloads. As such, good-listener popularity was classified as popular.
We found that good-listener 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.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.