
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
onedionys-css-class-manipulation
Advanced tools
One Dionys (CSS Class Manipulation) - Functions to add, remove, or modify CSS classes on DOM elements.
Functions to add, remove, or modify CSS classes on DOM elements. 💖
Web Browser
- Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].Internet
- Because many use CDN and to make it easier to find solutions to all problems.const { addClass, removeClass, hasClass } = require('css-class-manipulation');
const element = document.getElementById('exampleElement');
// Adding a class to an element
addClass(element, 'new-class');
// Removing a class from an element
removeClass(element, 'old-class');
// Checking if an element has a class
const hasNewClass = hasClass(element, 'new-class');
addClass(element, className)
: Adds a CSS class to the specified element.removeClass(element, className)
: Removes a CSS class from the specified element.hasClass(element, className)
: Checks if the specified element has the given CSS class.addClass
and removeClass functions do not return any value.hasClass
function returns a boolean value indicating whether the element has the specified class.Love One Dionys - CSS Class Manipulation? Support this project by donating or sharing with others in need.
Made with ❤️ One Dionys
FAQs
One Dionys (CSS Class Manipulation) - Functions to add, remove, or modify CSS classes on DOM elements.
The npm package onedionys-css-class-manipulation receives a total of 3 weekly downloads. As such, onedionys-css-class-manipulation popularity was classified as not popular.
We found that onedionys-css-class-manipulation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.