1 | Displaying download progress
|
2 | ----------------------------
|
3 |
|
4 | `yapm` displays progress info on the last line on the terminal.
|
5 |
|
6 | This is an experimental option. You can turn it on using `yapm set progress true`. Please leave a feedback on this if you can.
|
7 |
|
8 | ```sh
|
9 | $ yapm install express --progress=true
|
10 | http - GET https://registry.npmjs.org/express
|
11 | http - 304 https://registry.npmjs.org/express
|
12 | http - GET https://registry.npmjs.org/connect/2.14.1
|
13 | [... skip ...]
|
14 | http - GET https://registry.npmjs.org/mime
|
15 | http - GET https://registry.npmjs.org/keypress
|
16 | 552 kB/s [29/50] [mime: 22.9 kB/25.5 kB] [keypress: 8.0 kB/22.0 kB]
|
17 |
|
18 | # ^^^^^^^ ^^^^^ ^-- packages currently being downloaded
|
19 | # ` `----- completed / total http requests
|
20 | # `----------- your download speed
|
21 | ```
|
22 |
|
23 | It displays three things:
|
24 |
|
25 | 1. Your download speed. Unfortunately, upload speed isn't measured yet, and it also doesn't include headers.
|
26 | 2. Amount of completed / total http requests. Unfortunately, yapm doesn't know how much requests it has to do beforehand, so total amount of requests will grow over time.
|
27 | 3. Packages currently being downloaded. This indicator came from `apt-get` program. If yapm downloads a lot of things at once, it'll be cut so it always fits on one terminal line.
|
28 |
|
29 | Expect it to be on by default in the future, but it's still unclear when the future will finally come.
|
30 |
|