Skip to content

delarco/ts-tqdm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    }
})();

About

A tqdm for node (Typescript).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published