UNPKG

cerceis-lib

Version:

Contains list of quality of life functions that is written in TypeScript and es6

18 lines (16 loc) 587 B
type Color = "Red" | "Green" | "Yellow" | "Blue" | "Magenta" | "Cyan" | "White"; declare const Logger: { disabled: boolean; log(msg: string, color?: Color): void; error(msg: string): void; warn(msg: string): void; succ(msg: string): void; /** * Renders a progress bar to stdout. * @param current Current progress value. * @param total Total value. * @param sameLine Overwrite the current line instead of printing a new one. */ nodeProgress(current: number, total: number, sameLine?: boolean): void; }; export { type Color, Logger };