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.
- [x] Use one of the preset component factories like `rounded`: `const MyButton = rounded.button` - [x] Make your own component factory with `corners`: `const dogEared = corners(chamfer, null, null, null).size(40)` - [x] CSS clip-path ensures corners are
npm i corners
yarn add corners
Create react components with angled or smooth-rounded corners.
rounded
: const MyButton = rounded.button
corners
: const dogEared = corners(chamfer, null, null, null).size(40)
rounded.cornerSize(10).div
)corners(round).options({shadow: {...}}).div
)import type { FC } from "react"
import corners, { chamfer } from "corners"
const upperLeftDogeared = corners(null, null, null, chamfer).size(20)
const DogearedDiv = upperLeftDogeared.div
const MyComponent: FC = () => (
<DogEaredDiv style={{ background: "black" }}>
Hello, World!
</DogEaredDiv>
)
Argument | Type | Required? | Description |
---|---|---|---|
cornerFns | Maybe<DrawCorner>[] | Yes | 1, 2, or 4 functions that specify the corners for this factory in clockwise order |
cornerSize | number | Yes | Equivalent to the N px given in css border-radius |
MIT
FAQs
Unknown package
The npm package corners receives a total of 132 weekly downloads. As such, corners popularity was classified as not popular.
We found that corners 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’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.