
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A simple parser that allows querying of CSS values in a stylesheet.
A simple parser that allows querying of CSS values in a stylesheet.
I needed to parse values off a CSS stylesheet in a personal project, so I created this because I didn't find anything that did this.
Warning:
Currently it's only possible to query for a selector that's
actually present in the CSS since there isn't any matching functionality
present yet.
That's why a random selector like html body #foo.active:hover
isn't
going to work if you don't specifically define a selector like that.
style.css
:
#foo {
color: red;
font-size: 20px;
}
#foo.active {
color: green !important;
}
index.js
:
const cssQuery = require('css-query');
cssQuery.forFile('style.css')
.then(query => {
const color = query.query({
selector: '#foo.active',
property: 'color'
}).value
console.log(`The element's color is: ${color}`)
})
Output:
The element's color is: green
I won't be actively working on this, but there's still some stuff that should get added to this over time.
I'll gladly appreciate any contribution on this package!
FAQs
A simple parser that allows querying of CSS values in a stylesheet.
The npm package css-query receives a total of 0 weekly downloads. As such, css-query popularity was classified as not popular.
We found that css-query 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.