Gathering detailed insights and metrics for wqs-react-progress-bar.js
Gathering detailed insights and metrics for wqs-react-progress-bar.js
Gathering detailed insights and metrics for wqs-react-progress-bar.js
Gathering detailed insights and metrics for wqs-react-progress-bar.js
npm install wqs-react-progress-bar.js
Typescript
Module System
Node Version
NPM Version
JavaScript (92.73%)
HTML (3.95%)
Shell (1.98%)
CSS (1.34%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
45 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Apr 02, 2018
Latest Version
0.2.3
Package Id
wqs-react-progress-bar.js@0.2.3
Unpacked Size
103.90 kB
Size
55.35 kB
File Count
16
NPM Version
5.5.1
Node Version
8.9.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
This module is a React wrapper for progressbar.js. That's why most of the documentation refers to the original documentation.
Shortcuts
react-progressbar.js is lightweight, MIT licensed and supports all major browsers including IE9+.
Install the library using npm:
npm install --save react-progress-bar.js
Since React users are anyways using a CommonJS module loader, this module is published only in NPM.
CommonJS
1var ProgressBar = require('react-progress-bar.js') 2var Circle = ProgressBar.Circle;
See https://github.com/kimmobrunfeldt/progressbar.js#how-it-works.
NOTE: Line, Circle and SemiCircle all point to the same documentation which is named Shape. You almost certainly should replace it(Shape) with Line, Circle or SemiCircle.
Example: if documentation states <Shape />
, replace it with
<Circle />
, simple. Shape is the internal base object for all
progress bars.
Important: make sure that your container has same aspect ratio as the SVG canvas. For example: if you are using SemiCircle, set e.g.
1#container { 2 width: 300px; 3 height: 150px; 4}
Line, Circle or SemiCircle shaped progress bar. Appends SVG to container.
Example
1var App = React.createClass({ 2 render: function render() { 3 var options = { 4 strokeWidth: 2 5 }; 6 7 // For demo purposes so the container has some dimensions. 8 // Otherwise progress bar won't be shown 9 var containerStyle = { 10 width: '200px', 11 height: '200px' 12 }; 13 14 return ( 15 <Circle 16 progress={this.state.progress} 17 text={'test'} 18 options={options} 19 initialAnimate={true} 20 containerStyle={containerStyle} 21 containerClassName={'.progressbar'} /> 22 ); 23 } 24});
With Line shape, you can control the width of the line by specifying e.g. height: 5px
with CSS.
Props:
Prop | Description |
---|---|
progress | Progress from 0 to 1. E.g. 67% progress would equal 0.67 . Default 0 . |
text | Value for progress bar's text. Default null . |
options | Options for path drawing. See progressbar.js documentation. |
initialAnimate | If true , progress bar is animated to given progress when mounted. Default false . |
containerStyle | Styles for progress bar container. Default {} . |
containerClassName | Class name for progress bar container. Default .progressbar-container . |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More