UNPKG

@netwerk-digitaal-erfgoed/ld-workbench

Version:

LDWorkbench is a Linked Data Transformation tool designed to use only SPARQL as transformation language.

40 lines 883 B
import ora from 'ora'; export class Progress { constructor(options) { this.options = options; this.startTime = performance.now(); if (!options.silent) { this.spinner = ora(); } return this; } start(text) { this.spinner?.start(text); return this; } line(text) { if (!this.options.silent) { console.info(text); } return this; } text(text) { if (this.spinner) this.spinner.text = text; } fail(message) { this.spinner?.fail(message); } suffixText(text) { if (this.spinner === undefined) return; this.spinner.suffixText = text; } succeed(text) { this.spinner?.succeed(text); } stop() { this.spinner?.stop(); } } //# sourceMappingURL=progress.js.map