Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
list-css-selectors
Advanced tools
A simple way to list all the selectors used in your CSS file(s).
Via npm:
npm i list-css-selectors
Your CSS file:
div { display: block; }
#some-id { color: red; }
.some-class { color: white; }
.hover:hover { color: blue; }
[data-noval] { opacity: 0; }
[data-test='ok'] { opacity: 1; }
@keyframes softblink {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
.selector-in-media-query { width: 100%; }
}
Run list-css-selectors:
const listSelectors = require('list-css-selectors');
const { resolve } = require('path');
const pathToMyFile = resolve(resolve(), './styles.css');
const selectors = listSelectors(pathToMyFile);
The results of selectors
will be:
[
'div',
'#some-id',
'.some-class',
'.hover::hover',
'[data-noval]',
'[data-test=\'ok\']',
'softblink',
'.selector-in-media-query'
]
FAQs
List all the selectors in your CSS files(s).
The npm package list-css-selectors receives a total of 2 weekly downloads. As such, list-css-selectors popularity was classified as not popular.
We found that list-css-selectors 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.