0.8.6 • Published 11 months ago

ts-tqdm v0.8.6

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

ts-tqdm

A tqdm for node (Typescript).

Installation

npm

npm install ts-tqdm

source

npm install https://github.com/delarco/ts-tqdm.git

Usage

Import ts-tqdm

import { tqdm } from "ts-tqdm"

Array:

for (let item of tqdm([1, 2, 3, 4, 5, 6])) {
    // do stuff
}

Fixed iterations:

for (let item of tqdm(1000)) {
    // do stuff
}

Example

import { tqdm } from "ts-tqdm"

const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

(async () => {

    for (let _ of tqdm(1000)) {

        await delay(100);
    }
})();
0.8.6

11 months ago

0.8.5

11 months ago

0.8.3

11 months ago

0.8.2

11 months ago

0.8.1

11 months ago

0.8.0

11 months ago