xprogress 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -11
- package/{typings/index.d.ts → index.d.ts} +0 -0
- package/index.js +784 -0
- package/package.json +14 -38
- package/dist/index.js +0 -1040
package/README.md
CHANGED
|
@@ -23,18 +23,11 @@ npm install xprogress
|
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
|
-
``` javascript
|
|
27
|
-
// Node CommonJS
|
|
28
|
-
const ProgressBar = require('xprogress');
|
|
29
|
-
// Or ES6
|
|
30
|
-
import ProgressBar from 'xprogress';
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Example
|
|
34
|
-
|
|
35
26
|
Create a basic progress bar that updates itself with 10% twice every second until it's at maximum
|
|
36
27
|
|
|
37
28
|
``` javascript
|
|
29
|
+
import ProgressBar from 'xprogress';
|
|
30
|
+
|
|
38
31
|
const ProgressBar = require('xprogress');
|
|
39
32
|
|
|
40
33
|
const bar = new ProgressBar(100);
|
|
@@ -130,14 +123,13 @@ This content here is parsed by [pad-ratio][] in the construct of an [HybridInput
|
|
|
130
123
|
|
|
131
124
|
### Building
|
|
132
125
|
|
|
133
|
-
Feel free to clone, use in adherance to the [license](#license)
|
|
126
|
+
Feel free to clone, use in adherance to the [license](#license). Pull requests are very much welcome.
|
|
134
127
|
|
|
135
128
|
``` bash
|
|
136
129
|
git clone https://github.com/miraclx/xprogress.git
|
|
137
130
|
cd xprogress
|
|
138
131
|
npm install
|
|
139
132
|
# hack on code
|
|
140
|
-
npm run build
|
|
141
133
|
```
|
|
142
134
|
|
|
143
135
|
## License
|
|
File without changes
|