
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
classlist-multiple-values
Advanced tools
Use multiple values for `classList.add` and `classList.remove` methods.
Use multiple values for classList.add
and classList.remove
methods.
npm install classlist-multiple-values --save
const multipleValues = require('classlist-multiple-values');
const element = document.querySelector('.jackie');
const cl = multipleValues(element.classList);
cl.add('henry winnie');
cl.add(['scooter', 'emma']);
cl.remove('henry winnie');
cl.remove(['scooter', 'emma']);
Returns: Object
Returns improved add
and remove
methods.
Type: Object|DOMTokenList
Object
or DOMTokenList
which must contain add
and remove
methods.
Type: String[]|String
Array of strings or space-separated string of class values to add to the element.
Type: String[]|String
Array of strings or space-separated string of class values to remove from the element.
For local automated tests, run npm run test:automated:local
.
Tested in IE9+ and all modern browsers.
MIT © Ivan Nikolić
FAQs
Use multiple values for `classList.add` and `classList.remove` methods.
The npm package classlist-multiple-values receives a total of 649 weekly downloads. As such, classlist-multiple-values popularity was classified as not popular.
We found that classlist-multiple-values 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.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.