
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
@frankhoodbs/css-custom-properties-list
Advanced tools
Simple utility to list all the project custom properties
A simple utility to fetch and list all CSS Custom Properties (often known as CSS Variables) defined in
the :root selector of stylesheets from the same domain.
:root Selector: Specifically targets custom properties defined under the :root selector.Import the utility function:
import { cssCustomPropertiesList } from '@frankhoodbs/css-custom-properties-list';
To get a list of custom properties from all stylesheets in the document:
const propertiesList = cssCustomPropertiesList(document.styleSheets);
console.log(propertiesList);
This will return an array of arrays, where each inner array contains two strings: the custom property name and its value. For example:
[
['--primary-color', '#ff4500'],
['--font-size', '16px']
]
Determines whether a given stylesheet is from the same domain as the current page.
Checks if a given rule is a style rule.
The main utility function which accepts a list of stylesheets and returns the custom properties as described above.
FAQs
Simple utility to list all the project custom properties
The npm package @frankhoodbs/css-custom-properties-list receives a total of 26 weekly downloads. As such, @frankhoodbs/css-custom-properties-list popularity was classified as not popular.
We found that @frankhoodbs/css-custom-properties-list demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.