
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
classes-component
Advanced tools
Cross-browser element class manipulation, utilizing the native .classList when possible. This is not designed to be a .classList polyfill.
$ component install component/classes
var classes = require('classes');
classes(el)
.add('foo')
.toggle('bar')
.remove(/^item-\d+/);
Add class.
Remove class name or all classes matching the given regular expression.
Toggle class.
Check if class is present.
Return an array of classes.
MIT
FAQs
Cross-browser element class list
We found that classes-component 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
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.