Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > RemoveColorsTextRewriter

RemoveColorsTextRewriter class

For use with TextRewriterTransform, this rewriter removes ANSI escape codes including colored text.

Signature:

export declare class RemoveColorsTextRewriter extends TextRewriter 

Extends: TextRewriter

Remarks

The implementation also removes other ANSI escape codes such as cursor positioning. The specific set of affected codes may be adjusted in the future.

Methods

MethodModifiersDescription
close(unknownState)
initialize()
process(unknownState, text)