externalAnsiDiffFormatter
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Instantiates an
AnsiDiffFormatter
, configured with colour support options for Chalk. When nochalkOptions
object is provided, Chalk will auto-detect colour support automatically based on the execution environment.Available colour support levels:
0
- All colours disabled.1
- Basic 16 colours support.2
- ANSI 256 colours support.3
- Truecolor - 16 million colours support.
Parameters
externaloptionalchalkOptions: Options
Returns AnsiDiffFormatter
Methods
externalexpected
Parameters
externalline: string
Returns string
externalreceived
Parameters
externalline: string
Returns string
externalunchanged
Parameters
externalline: string
Returns string
A
DiffFormatter
that uses ANSI escape codes to format the output.