
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
svg-path-to-polygon-points
Advanced tools
[](https://travis-ci.org/joemccann/dillinger)
A simple npm module that converts an SVG path string into a polygon points string.
npm install svg-path-to-polygon-points
const svgToPolygonPoints = require('svg-path-to-polygon-points');
const path = 'M100,100 L200,200 L300,100';
const points = svgToPolygonPoints(path);
console.log(points);
[{
x: 100,
y: 100
}, {
x: 110,
y: 110
}, {
x: 120,
y: 120
}, {
x: 130,
y: 130
}, {
x: 140,
y: 140
}, {
x: 150,
y: 150
}, {
x: 160,
y: 160
}, {
x: 170,
y: 170
}, {
x: 180,
y: 180
}, {
x: 190,
y: 190
}, {
x: 200,
y: 200
}, {
x: 210,
y: 190
}, {
x: 220,
y: 180
}, {
x: 230,
y: 170
}, {
x: 240,
y: 160
}, {
x: 250,
y: 150
}, {
x: 260,
y: 140
}, {
x: 270,
y: 130
}, {
x: 280,
y: 120
}, {
x: 290,
y: 110.00000762939453
}]
Converts an SVG path string into a polygon points string.
Arguments path - The SVG path string to convert. Returns - A polygon points array
Contributions are welcome! Please make a PR.
This project is licensed under the MIT License.
FAQs
[](https://travis-ci.org/joemccann/dillinger)
The npm package svg-path-to-polygon-points receives a total of 0 weekly downloads. As such, svg-path-to-polygon-points popularity was classified as not popular.
We found that svg-path-to-polygon-points 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.