Home > @rushstack/terminal > ITextRewriterTransformOptions

ITextRewriterTransformOptions interface

Constructor options for TextRewriterTransform.

Signature:

export interface ITextRewriterTransformOptions extends ITerminalTransformOptions 

Extends: ITerminalTransformOptions

Properties

Property Type Description
ensureNewlineAtEnd boolean If normalizeNewlines or ensureNewlineAtEnd is specified, a NormalizeNewlinesTextRewriter will be appended to the list of rewriters with the specified settings.
normalizeNewlines NewlineKind If normalizeNewlines or ensureNewlineAtEnd is specified, a NormalizeNewlinesTextRewriter will be appended to the list of rewriters with the specified settings.
removeColors boolean If specified, a RemoveColorsTextRewriter will be appended to the list of rewriters.
textRewriters TextRewriter[] A list of rewriters to be applied. More items may be appended to the list, for example if ITextRewriterTransformOptions.removeColors is specified.