Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
bianco.events
Advanced tools
Modern DOM events helpers written in es2015
This script will not be transpiled and it is only thought to be part of your build chain.
import { add, remove, once } from 'bianco.events'
add(node/s, 'click mouseenter', function(e) {
console.log('tadaaa!')
})
Set a listener for all the events received separated by spaces
Parameters
els
(HTMLElement | Array) DOM node/s where the listeners will be boundevList
String list of events we want to bind space separatedcb
Function listeners callbackoptions
Object event options (capture, once and passive)Returns (HTMLElement | NodeList | Array) DOM node/s and first argument of the function
Set a listener using from a list of events triggering the callback only once
Parameters
els
(HTMLElement | Array) DOM node where the listeners will be boundevList
String list of events we want to bind space separatedcb
Function listeners callbackoptions
Object event options (capture, once and passive)Returns (HTMLElement | NodeList | Array) DOM node/s and first argument of the function
Remove all the listeners for the events received separated by spaces
Parameters
els
(HTMLElement | Array) DOM node/s where the events will be unbindevList
String list of events we want unbind space separatedcb
Function listeners callbackoptions
Object event options (capture, once and passive)Returns (HTMLElement | NodeList | Array) DOM node/s and first argument of the function
FAQs
Modern DOM events helpers written in es2015
The npm package bianco.events receives a total of 100 weekly downloads. As such, bianco.events popularity was classified as not popular.
We found that bianco.events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.