@grandlinex/easy-cli
Version:
Cli lib to perform common tasks
21 lines (20 loc) • 523 B
TypeScript
export default class ProgressBar {
private maxLength;
private startMs;
private cur;
private end;
private info;
private readonly width;
private frameIndex;
private readonly frames;
private readonly unicodeFrames;
private readonly colorEnabled;
constructor(end?: number);
reset(): void;
setEnd(end: number): void;
setInfo(info: string | null): void;
setState(cur: number, info?: string | null): void;
done(): void;
private renderLine;
private update;
}