Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
circle-divided-by-chord
Advanced tools
Circle divided by chord.
npm install --save circle-divided-by-chord
or
yarn add circle-divided-by-chord
import * as React from "react";
import CircleDividedByChord from "circle-divided-by-chord";
class Example extends React.Component {
render() {
return <CircleDividedByChord />;
}
}
import * as React from "react";
import CircleDividedByChord from "circle-divided-by-chord";
import { random, range } from "lodash";
function getRandomColor() {
return `hsl(${parseInt(256 * Math.random())}, 70%, 85%, 1)`;
}
class Example extends React.Component {
render() {
return (
<div className="pa2">
{range(56).map(i => {
const datum1 = random(0, 100, true);
const datum2 = random(0, 100, true);
const angle = random(0, 360, true);
const color1 = getRandomColor();
const color2 = getRandomColor();
return (
<CircleDividedByChord
key={i}
radius={30}
datum1={datum1}
datum2={datum2}
angle={angle}
color1={color1}
color2={color2}
/>
);
})}
</div>
);
}
}
Props are all optional:
Prop name | Type | Default value | What is |
---|---|---|---|
color1 | string | #8DC0B1 | color of the first section |
color2 | string | #F3E0D2 | color of the second section |
radius | number | 200 | radius of the circle (px) |
datum1 | number | 20 | first datum |
datum2 | number | 80 | second datum |
angle | number | 135 | angle of the chord |
MIT © ilariaventurini
FAQs
```bash npm install --save circle-divided-by-chord ```
The npm package circle-divided-by-chord receives a total of 7 weekly downloads. As such, circle-divided-by-chord popularity was classified as not popular.
We found that circle-divided-by-chord 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.