Methods
- createStreamReporter(prefix?: null | string): PassThrough
Parameters
prefix: null | string = null
Returns PassThrough
- getRecommendedLength(): number
- reportCacheHit(locator: Locator): void
- reportCacheMiss(locator: Locator, message?: string): void
- reportErrorOnce(name: MessageName, text: string, opts?: { key?: any; reportExtra?: (report: Report) => void }): void
Parameters
text: string
optionalopts: { key?: any; reportExtra?: (report: Report) => void }
Returns void
- reportFold(title: string, text: string): void
Parameters
title: string
text: string
Returns void
- reportInfo(name: null | MessageName, text: string): void
- reportInfoOnce(name: MessageName, text: string, opts?: { key?: any; reportExtra?: (report: Report) => void }): void
Parameters
text: string
optionalopts: { key?: any; reportExtra?: (report: Report) => void }
Returns void
- reportJson(data: any): void
- reportProgress(progress: AsyncIterable<ProgressDefinition>): Promise<void> & { stop: () => void }
Parameters
progress: AsyncIterable<ProgressDefinition>
Returns Promise<void> & { stop: () => void }
- reportWarningOnce(name: MessageName, text: string, opts?: { key?: any; reportExtra?: (report: Report) => void }): void
Parameters
text: string
optionalopts: { key?: any; reportExtra?: (report: Report) => void }
Returns void
- startProgressPromise<T, P>(progressIt: P, cb: (progressIt: P) => Promise<T>): Promise<T>
Type parameters
Parameters
progressIt: P
cb: (progressIt: P) => Promise<T>
Returns Promise<T>
- startProgressSync<T, P>(progressIt: P, cb: (progressIt: P) => T): T
Type parameters
Parameters
progressIt: P
cb: (progressIt: P) => T
Returns T
- startSectionPromise<T>(opts: SectionOptions, cb: () => Promise<T>): Promise<T>
Type parameters
Parameters
opts: SectionOptions
cb: () => Promise<T>
Returns Promise<T>
- startSectionSync<T>(opts: SectionOptions, cb: () => T): T
Type parameters
Parameters
opts: SectionOptions
cb: () => T
Returns T
- startTimerPromise<T>(what: string, opts: TimerOptions, cb: () => Promise<T>): Promise<T>
- startTimerPromise<T>(what: string, cb: () => Promise<T>): Promise<T>
Type parameters
Parameters
what: string
opts: TimerOptions
cb: () => Promise<T>
Returns Promise<T>
- startTimerSync<T>(what: string, opts: TimerOptions, cb: () => T): T
- startTimerSync<T>(what: string, cb: () => T): T
Type parameters
Parameters
what: string
opts: TimerOptions
cb: () => T
Returns T
- progressViaCounter(max: number): { hasProgress: boolean; hasTitle: boolean; set: (n: number) => void; tick: (n?: number) => void; [asyncIterator]: any }
Parameters
Returns { hasProgress: boolean; hasTitle: boolean; set: (n: number) => void; tick: (n?: number) => void; [asyncIterator]: any }
hasProgress: boolean
hasTitle: boolean
set: (n: number) => void
tick: (n?: number) => void
[asyncIterator]: function
- [asyncIterator](): AsyncGenerator<{ progress: number }, void, unknown>
Returns AsyncGenerator<{ progress: number }, void, unknown>
- progressViaTitle(): { hasProgress: boolean; hasTitle: boolean; setTitle: (title: string) => void; [asyncIterator]: any }
Returns { hasProgress: boolean; hasTitle: boolean; setTitle: (title: string) => void; [asyncIterator]: any }
hasProgress: boolean
hasTitle: boolean
setTitle: (title: string) => void
[asyncIterator]: function
- [asyncIterator](): AsyncGenerator<{ title: undefined | string }, never, unknown>
Returns AsyncGenerator<{ title: undefined | string }, never, unknown>