
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
react-circle-timer
Advanced tools
Lightweight React countdown timer circle component with color and progress animation based on SVG
React Js countdown timer component in a circle shape with color and progress animation.
npm i react-circle-timer
or
yarn add react-circle-timer
import { useRef } from "react";
import ReactCircleTimer from 'react-circle-timer';
function Example() {
const countDownRef = useRef();
const start = () => {
countDownRef.current.startTimer();
};
const stop = () => {
countDownRef.current.stopTimer();
};
const resume = () => {
countDownRef.current.resumeTimer();
};
const reset = () => {
countDownRef.current.resetTimer();
};
return (
<div>
<button onClick={start}>Start</button>
<button onClick={stop}>stop</button>
<button onClick={resume}>resume</button>
<button onClick={reset}>reset</button>
<ReactCircleTimer
ref={countDownRef}
size={150}
strokeBgColor="#4d4d4d"
strokeWidth={10}
strokeColor="red"
seconds={30}
prefixTime={"s"}
/>
</div>
);
}
export default Example;
Prop Name | Type | Default | Description |
---|---|---|---|
ref | string | required | component reference |
size | number | 80 | Width and height of the SVG element |
colorsTime | object | - | time color |
autoPlay | boolean | false | auto play animation |
strokeWidth | number | 10 | Path stroke width |
strokeBgColor | string | #ccc | fixed background |
strokeColor | string | red | stroke color |
seconds | number | 30 | Time time to run out of circle |
prefixTime | string | - | prefix after time |
start | () => void | - | start countdown |
stop | () => void | - | stop countdown |
resume | () => void | - | resume countdown |
reset | () => void | - | reset countdown |
FAQs
Lightweight React countdown timer circle component with color and progress animation based on SVG
The npm package react-circle-timer receives a total of 2 weekly downloads. As such, react-circle-timer popularity was classified as not popular.
We found that react-circle-timer 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.