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.
jquery-once
Advanced tools
Act on jQuery elements only once.
Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.
require('jquery-once')
npm install --save jquery-once
require('jquery-once')
npm install --save jquery-once
//wzrd.in/bundle/jquery-once@2.0.0
require('jquery-once')
ender add jquery-once
require('jquery-once')
component install RobLoach/jquery-once
require('jquery-once')
bower install jquery-once
See the API documentation for details on how to use jQuery Once.
Install dependencies through npm:
npm install
Test with ESLint, Mocha and Mocha JSDom:
npm test
Update project documentation with Projectz and jsdoc-to-markdown:
npm run projectz
npm run docs
Build jquery.once.min.js
with:
npm run build
Tag and publish the new versions to npm with Semantic Versioning:
git tag 2.0.0
git push origin 2.0.0
npm publish
Discover the change history by heading on over to the HISTORY.md
file.
Licensed under:
Copyright © Rob Loach (http://github.com/RobLoach)
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
[2.0.0] - January 20th, 2015
id
parameter of .once()
as optional
.data()
use rather than class attributesfindOnce()
function to allow filtering once'd elementsFAQs
Act on jQuery elements only once.
The npm package jquery-once receives a total of 1,795 weekly downloads. As such, jquery-once popularity was classified as popular.
We found that jquery-once demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
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.