ReadonlystderrThe WritableStream used for stderr. Can be accessed directly for output of binary data etc.
ReadonlystdoutThe WritableStream used for stdout. Can be accessed directly for output of binary data etc.
Disable or enable color output for messages.
Disable or enable color output for messages.
Enable or disable dark mode. Default is disabled i.e. false.
Enable or disable dark mode. Default is disabled i.e. false.
Disable or enable hyperlink output for messages.
Disable or enable hyperlink output for messages.
Return the provided message so that the background is blue.
Has no effect if colorEnabled is false.
Return the provided message so that the background is the specified color.
Has no effect if colorEnabled is false.
the message to color.
the color to use. This should be a valid hex formatted string e.g. "#rrggbb".
Return the provided message so that the background is cyan.
Has no effect if colorEnabled is false.
Return the provided message so that the background is colored as emphasised content.
Has no effect if colorEnabled is false.
Return the provided message so that the background is green.
Has no effect if colorEnabled is false.
Return the provided message so that the background is magenta.
Has no effect if colorEnabled is false.
Return the provided message so that the background is orange.
Has no effect if colorEnabled is false.
Return the provided message so that the background is colored as primary content.
Has no effect if colorEnabled is false.
Return the provided message so that the background is red.
Has no effect if colorEnabled is false.
Return the provided message so that the background is colored as secondary content.
Has no effect if colorEnabled is false.
Return the provided message so that the background is colored as selected content.
Has no effect if colorEnabled is false.
Return the provided message so that the background is violet.
Has no effect if colorEnabled is false.
Return the provided message so that the background is yellow.
Has no effect if colorEnabled is false.
Return the provided message so that the foreground is blue.
Has no effect if colorEnabled is false.
Return the provided message so that the foreground is the specified color.
Has no effect if colorEnabled is false.
the message to color.
the color to use. This should be a valid hex formatted string e.g. "#rrggbb".
Return the provided message so that the foreground is cyan.
Has no effect if colorEnabled is false.
Print a Level.DEBUG level message on stderr.
Will be displayed as secondary content if colorEnabled is true.
the message to output.
Optionalicon: Icon
optional icon to display with the message.
Return the provided message so that the foreground is colored as emphasised content.
The actual color will depend on the value of darkMode.
Has no effect if colorEnabled is false.
Stop tracking rows for the current mark region (see startMark). The tracked row count is frozen; further writes are not counted. Use clearMarked to erase the tracked rows.
Throws if called without a matching startMark.
End the most recently started quote level (see startQuote).
Throws if called without a matching startQuote.
Print an Level.ERROR level message on stderr.
Will be displayed as red content if colorEnabled is true.
the message to output.
Optionalicon: Icon
optional icon to display with the message.
Return the provided message so that the foreground is green.
Has no effect if colorEnabled is false.
Hides all progress bars.
NOTE: Showing the spinner will also hide ALL progress bars.
Hides a specified progress bar.
NOTE: Showing the spinner will also hide ALL progress bars.
the handle referring to the progress bar to be hidden.
Hide the spinner.
NOTE: Showing a progress bar will also hide the spinner.
Return the provided text wrapped in an OSC 8 hyperlink to the specified URL.
Has no effect if hyperlinksEnabled is false, in which case the text is returned unchanged.
the text to display as the hyperlink.
the URL target of the hyperlink.
Print an Level.INFO level message on stderr.
Will be displayed as primary content if colorEnabled is true.
the message to output.
Optionalicon: Icon
optional icon to display with the message.
Return the provided message so that the text is displayed in italic.
Return the provided message so that the foreground is magenta.
Has no effect if colorEnabled is false.
Return the provided message so that the foreground is orange.
Has no effect if colorEnabled is false.
Return the provided message so that the foreground is colored as primary content. This is the default
calor applied. The actual color will depend on the value of darkMode.
Has no effect if colorEnabled is false.
Print a message on stdout.
Will be displayed as primary content if colorEnabled is true.
the message to output.
Optionalicon: Icon
optional icon to display with the message.
Return the provided message so that the foreground is red.
Has no effect if colorEnabled is false.
Return the provided message so that the foreground is colored as secondary content.
The actual color will depend on the value of darkMode.
Has no effect if colorEnabled is false.
Return the provided message so that the background is colored as selected content.
The actual color will depend on the value of darkMode.
Has no effect if colorEnabled is false.
Set the output threshold Level for stderr.
Default level is Level.INFO.
any message below this level will be filtered from output,
Display a progress bar on stderr.
The progress will be displayed in green if colorEnabled is true.
NOTE: The progress bar and message will be displayed at Level.INFO level.
NOTE: If the spinner is currently displayed it will be hidden.
the units to display for progress indication e.g. 'MB' or 'Kb'.
an optional message for the progress bar.
the total value which equates to 100% complete, defaults to 100.
the current value which is a portion of the total value, defaults to 0.
Optionalstyle: ProgressStyle
optional progress bar rendering style, defaults to ProgressStyle.STROKE.
a handle to use when invoking updateProgressBar.
Display the spinner on stderr.
The spinner will be displayed as emphasised content and the message will
be displayed as primary content if colorEnabled is true.
NOTE: The spinner and message will be displayed at Level.INFO level.
NOTE: If the spinner is already displayed the message will be updated to that specified.
NOTE: If any progress bars are currently displayed they will be hidden.
Optionalmessage: string
the message to output after the spinner.
Optionalstyle: SpinnerStyle
optional spinner animation style, defaults to SpinnerStyle.BOX.
Start tracking the terminal rows occupied by subsequent writes so they can later be erased via clearMarked. Only one mark region can be active at a time.
Throws if called while already marking.
Start a quoted, indented block of output. While active, every line written via print, debug, info, warn or error is prefixed with box-drawing indent characters. Quotes can be nested by calling startQuote again before calling endQuote; each nesting level renders in its own color and adds another indent column.
OptionalhexFormattedColor: string
optional color for this level's indent characters, e.g. "#rrggbb". Defaults to the secondary theme color if not specified.
The number of columns available on the stderr terminal. Defaults to 80 if the terminal width cannot be determined.
The number of columns available on the stdout terminal. Defaults to 80 if the terminal width cannot be determined.
Update a specific progress bar.
the handle referring to the progress bar to be updated.
the current value to set on the progress bar.
Optionalmessage: string
an optional message to set on the progress bar, if not specified the initially specified message will be displayed.
Return the provided message so that the foreground is violet.
Has no effect if colorEnabled is false.
Print a Level.WARN level message on stderr.
Will be displayed as yellow content if colorEnabled is true.
the message to output.
Optionalicon: Icon
optional icon to display with the message.
Return the provided message so that the foreground is yellow.
Has no effect if colorEnabled is false.
Service allowing a Command to output user messages to
stdoutand/orstderr.Output to
stdoutis via print whilst output tostderris via a filtered logging mechanism using debug, info, warn and error.