Skip to main content

Home > @rushstack/terminal > PrintUtilities

PrintUtilities class

A collection of utilities for printing messages to the console.

export declare class PrintUtilities 


getConsoleWidth()staticReturns the width of the console, measured in columns
printMessageInBox(message, terminal, boxWidth)staticDisplays a message in the console wrapped in a box UI.
wrapWords(text, maxLineLength, indent)staticApplies word wrapping. If maxLineLength is unspecified, then it defaults to the console width.