snck 0.0.1

progress display


To use this package, run the following command in your project's root directory:

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]
Authors:
  • Shigeki Karita
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
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 997 downloads total

Score:
0.4
Short URL:
snck.dub.pm