
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
corner-rounder
Advanced tools
Corner rounder with SVG integration
Corner Rounder rounds the corners of a path (or "route") of points. It provides the option to convert the result to SVG elements or SVG path commands.
npm i -S corner-rounder
import roundCorners from 'corner-rounder'
const result = roundCorners({
// Simple "L"-shape route
route: [
[0, 0],
[0, 50],
[50, 50]
],
r: 10,
})
// E.g. "M 0 0 L 0 40 A 10 10 0 0 0 10 50 L 50 50"
const d = result.toSvgPathDParameter()
// E.g. (SVGLineElement | SVGPathElement)[]
const svgLineAndArcElements = result.toSvgLinesAndArcs({ color: 'orange', ... })
The result of this looks as follows (r = 10):

Corner Rounder uses Exhibitor to demo itself with some example routes, modifiable stroke widths, colors, radii, etc.. To view these, clone the repository, run npm i && npm run exh, then navigate to http://localhost:4001.
The examples are within /src/test/, which provide a comprehensive look into how Corner Rounder can be used.
See ./contributing/development.md
If you would like to support my open-source development, feel free to sponsor me on GitHub or buy me a coffee ✨
FAQs
Corner rounder with SVG support
The npm package corner-rounder receives a total of 47 weekly downloads. As such, corner-rounder popularity was classified as not popular.
We found that corner-rounder 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.