
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
addeventlistener
Advanced tools
`addEventListener` that takes options as an object and returns a function to remove the listener.
addEventListener
that takes options as an object and returns a function to remove the listener.
$ npm install addeventlistener
addEventListener(element, eventName, listener, options)
import addEventListener from 'addeventlistener'
const removeEventListener = addEventListener(
document.body,
'touchmove',
e => {},
{ passive: false }
)
once(element, eventName, listener, options)
Listen for the event and stop listening after it has occurred once. You can still use the returned function to stop listening if you want to stop listening before the event has occurred once.
import { once } from 'addeventlistener'
const removeEventListener = once(window, 'click', console.log)
const { default: addEventListener, once } = require('addeventlistener')
FAQs
`addEventListener` that takes options as an object and returns a function to remove the listener.
The npm package addeventlistener receives a total of 8 weekly downloads. As such, addeventlistener popularity was classified as not popular.
We found that addeventlistener 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
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.