Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
css-to-object
Advanced tools
Convert flat CSS rules to JavaScript style objects
Useful for css-in-js libraries
npm i css-to-object
const cssToObject = require('css-to-object')
const style = cssToObject(`
color: tomato;
padding: 16px;
@media (min-width: 40em) {
paddingLeft: 32px;
paddingRight: 32px;
}
&:hover: {
color: black;
}
& h1 {
font-size: 48px;
}
`, {
camelCase: true,
numbers: true
})
// {
// color: 'tomato',
// padding: 16,
// '@media (min-width: 40em)': {
// paddingLeft: 32,
// paddingRight: 32,
// },
// ':hover': {
// color: 'black'
// },
// h1: {
// fontSize: 48
// }
// }
numbers
: Converts px values to numberscamelCase
: converts CSS properties to camelCased keysFAQs
Convert flat CSS rule to JavaScript style object
The npm package css-to-object receives a total of 332 weekly downloads. As such, css-to-object popularity was classified as not popular.
We found that css-to-object 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.