Initial text label shown after the spinner.
Customization options for behavior and style.
An object with methods to control the spinner.
FRAMES at a consistent interval.readline.clearLine() and readline.cursorTo() to overwrite the current line for smooth in-place updates. These only have effect when stdout is a TTY. (StackOverflow).stop(finalText?): Ends spinner and optionally prints a final line..update(newLabel): Changes displayed label mid-spin..pause(): Stops the animation but leaves the current frame on screen, then moves to a new line..resume(): Restarts the spinner after a pause..stopAndPersist(text, symbol?): Stops and replaces the spinner with a custom symbol and label.
A simple terminal spinner with utility methods to update and stop.