Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
fastbinder
Advanced tools
Fast and worry-free dynamic event binding.
Add and remove DOM elements dynamically without any additional event binding/unbinding steps. The only bound elements are window
and document.body
. Requires jQuery.
Currently the following attributes are supported:
data-on-click
data-on-hover
data-on-keyup
data-on-change
data-on-submit
data-on-scroll
bower install fastbinder
npm install fastbinder
// Initialize
jQuery.fastbinder();
// Initialize with options
jQuery.fastbinder({ hoverDelay: 250 });
// Set options later on:
jQuery.fastbinder.setOptions({ forceExternalLinks: false });
// Tear down:
jQuery.fastbinder.destroy();
<!-- Change Handler -->
<input type="text" data-on-change="MyLibrary.myChangeHandler" />
<!-- Click Handler -->
<a href="#" data-on-click="MyLibrary.myClickHandler">Execute myFunction on click</a>
<!-- Hover Handler -->
<div data-on-hover="MyLibrary.myHoverHandler"></a>
<!-- Scroll Handler -->
<div data-on-scroll="MyLibrary.myScrollHandler"></a>
<!-- Form submit handler -->
<form data-on-submit="MyLibrary.mySubmitHandler">
<input type="text" />
<input type="submit" />
</form>
By using the data-controller
attribute on either a parent element or the element itself, you can namespace a template block to a particular controller. For example, changing this input would execute the MyLibrary.myController.change
function:
<div data-controller="MyLibrary.myController">
<input type="text" data-on-change="change" />
</div>
First, install bower and npm dependencies:
npm install
bower install
npm test
FAQs
Fast and worry-free dynamic event binding
The npm package fastbinder receives a total of 42 weekly downloads. As such, fastbinder popularity was classified as not popular.
We found that fastbinder 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.