snck 0.0.1
progress display
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
snck
snck
is a port of tdqm in D.
snck
is an acronym of "Shi-N-Cho-Ku" that means "progress" in Japanese.
usage
import snck : snck;
import core.thread;
void main() {
foreach (i; [1, 2, 3].snck) {
Thread.sleep(dur!"seconds"(1));
}
}
this code prints progress of foreach into stderr as follows:
33%: 1/3|████ | [00:01<00:02, 1.00it/s]
66%: 2/3|███████ | [00:02<00:01, 1.00it/s]
100%: 3/3|██████████| [00:03<00:00, 1.00it/s]
- Registered by shigeki karita
- 0.0.1 released 5 years ago
- ShigekiKarita/snck
- BSL-1.0
- Copyright © 2018, Shigeki Karita
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.4 2018-May-06 0.0.3 2018-May-04 0.0.2 2018-May-04 0.0.1 2018-May-03 ~master 2018-May-06 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
1465 downloads total
-
- Score:
- 0.6
- Short URL:
- snck.dub.pm