Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-progress-timer
Advanced tools
Readme
This react component will automatically calculate the time to complete a progress bar by percentage changing speed. You want supply only the current percentage as a prop.
You can install this component using yarn or npm
//yarn
$ yarn add react-progress-timer
//npm
$ npm install react-progress-timer --save
import ProgressTimer from 'react-progress-timer';
...
<ProgressTimer
percentage={percent}
/>
Please provide following props. Props that marked with leading (*) are required.
Prop | Description | Type |
---|---|---|
*percentage | Current percentage of the progress | number |
initialText | Text to display when initializing. Default is Initializing | string |
completedText | Text to display after completed the task. Default is Completed | string |
decreaseTime | With this prop time will automatically decreasing even percentage not changed. By default this feature is enabled. | boolean |
calculateByAverage | Calculating time by average speed. By default calculating the speed by current speed | boolean |
format | Format to display the remaining time. Default:- Completing in {value} {unit} . You can also use the {percentage} placeholder. | string |
formatter | You can use your own formatter to format your string. Supply time in nano second to first parameter. | (time:number)=>string |
rollingAverageWindowSize | When calculating by current speed, this specifies how many past values will be considered as "current". Default is 1 | number |
$ git clone https://github.com/whizsid/react-progress-timer`
$ cd react-progress-timer
$ yarn
yarn start
Please lint your code before made a PR.
$ yarn lint
Always follow prettier code styles and check before making your PR.
$ yarn prettier
I will reply to all PRs when I have a free time. Issues and stars also welcome.
FAQs
This react component will automatically calculate the time to complete a progress bar by percentage changing speed.
The npm package react-progress-timer receives a total of 66 weekly downloads. As such, react-progress-timer popularity was classified as not popular.
We found that react-progress-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.