Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@amendable/inline-props-css
Advanced tools
This resolver merges all the React props that match the names of styling props into the `css` prop.
This resolver merges all the React props that match the names of styling props into the css
prop.
import { render } from 'react-dom'
import Box, { AmendableProvider } from '@amendable/core'
import inlinePropsCss from '@amendable/inline-props-css'
const resolvers = [
inlinePropsCss(),
]
render(
<AmendableProvider resolvers={resolvers}>
<Box
display="flex"
backgroundColor="red"
padding={64}
paddingBottom={34}
color="blue"
hoverBackgroundColor="blue"
hoverColor="red"
>
Amendable
</Box>
</AmendableProvider>
)
This will be resolved to
<Box
css={{
display: 'flex',
backgroundColor: 'red',
padding: 64,
paddingBottom: 34,
color: 'blue',
'&:hover': {
backgroundColor: 'blue',
color: 'red'
}
}}
>
Amendable
</Box>
It uses inline-style-properties underneath for prop matching.
Here are all the styling props it supports (it supports most): Supported styling properties
FAQs
This resolver merges all the React props that match the names of styling props into the `css` prop.
We found that @amendable/inline-props-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.