RoadmapShopEvents
Skip to main content

Home > @rushstack/terminal > PrintUtilities

PrintUtilities class

A collection of utilities for printing messages to the console.

Signature:

export declare class PrintUtilities 

Methods

MethodModifiersDescription
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.