New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

wmel

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wmel

WeakMap-based Event Listener

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

WMEL

WeakMap-based Event Listener.

import { listen } from "wmel"

// Add listener

const abort = listen(
	document.querySelector("#some-button"), // target
	"click",                                // type
	({ target }) => console.log("clicked")  // listener
);


// Abort listener

abort();

Install

npm i wmel

Benchmark

jsPerf shows WMEL is ~60% faster than vanilla addEventListener.

Keywords

WeakMap

FAQs

Package last updated on 16 Jul 2025

Did you know?

Socket

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.

Install

Related posts