Skip to content

Latest commit

 

History

History
252 lines (168 loc) · 6.39 KB

File metadata and controls

252 lines (168 loc) · 6.39 KB

stripAnsi (function)

Removes ANSI control characters from a string.

declare function stripAnsi(input: string | number | Path): string;

quote (function)

Wraps a string in double quotes, and escapes any double-quotes inside using \".

declare function quote(input: string | number | Path): string;

black (function)

Wraps a string with the ANSI control characters that will make it print as black text.

declare function black(input: string | number | Path): string;

red (function)

Wraps a string with the ANSI control characters that will make it print as red text.

declare function red(input: string | number | Path): string;

green (function)

Wraps a string with the ANSI control characters that will make it print as green text.

declare function green(input: string | number | Path): string;

yellow (function)

Wraps a string with the ANSI control characters that will make it print as yellow text.

declare function yellow(input: string | number | Path): string;

blue (function)

Wraps a string with the ANSI control characters that will make it print as blue text.

declare function blue(input: string | number | Path): string;

magenta (function)

Wraps a string with the ANSI control characters that will make it print as magenta text.

declare function magenta(input: string | number | Path): string;

cyan (function)

Wraps a string with the ANSI control characters that will make it print as cyan text.

declare function cyan(input: string | number | Path): string;

white (function)

Wraps a string with the ANSI control characters that will make it print as white text.

declare function white(input: string | number | Path): string;

gray (function)

Wraps a string with the ANSI control characters that will make it print as gray text. (Alias for grey.)

declare function gray(input: string | number | Path): string;

grey (function)

Wraps a string with the ANSI control characters that will make it print as grey text. (Alias for gray.)

declare function grey(input: string | number | Path): string;

bgBlack (function)

Wraps a string with the ANSI control characters that will make it have a black background when printed.

declare function bgBlack(input: string | number | Path): string;

bgRed (function)

Wraps a string with the ANSI control characters that will make it have a red background when printed.

declare function bgRed(input: string | number | Path): string;

bgGreen (function)

Wraps a string with the ANSI control characters that will make it have a green background when printed.

declare function bgGreen(input: string | number | Path): string;

bgYellow (function)

Wraps a string with the ANSI control characters that will make it have a yellow background when printed.

declare function bgYellow(input: string | number | Path): string;

bgBlue (function)

Wraps a string with the ANSI control characters that will make it have a blue background when printed.

declare function bgBlue(input: string | number | Path): string;

bgMagenta (function)

Wraps a string with the ANSI control characters that will make it have a magenta background when printed.

declare function bgMagenta(input: string | number | Path): string;

bgCyan (function)

Wraps a string with the ANSI control characters that will make it have a cyan background when printed.

declare function bgCyan(input: string | number | Path): string;

bgWhite (function)

Wraps a string with the ANSI control characters that will make it have a white background when printed.

declare function bgWhite(input: string | number | Path): string;

reset (function)

Prefixes a string with the ANSI control character that resets all styling.

declare function reset(input: string | number | Path): string;

bold (function)

Wraps a string with the ANSI control characters that will make it print with a bold style.

declare function bold(input: string | number | Path): string;

dim (function)

Wraps a string with the ANSI control characters that will make it print with a dimmed style.

declare function dim(input: string | number | Path): string;

italic (function)

Wraps a string with the ANSI control characters that will make it print italicized.

declare function italic(input: string | number | Path): string;

underline (function)

Wraps a string with the ANSI control characters that will make it print underlined.

declare function underline(input: string | number | Path): string;

inverse (function)

Wraps a string with ANSI control characters that will make it print with its foreground (text) and background colors swapped.

declare function inverse(input: string | number | Path): string;

hidden (function)

Wraps a string with ANSI control characters that will make it print as hidden.

declare function hidden(input: string | number | Path): string;

strikethrough (function)

Wraps a string with the ANSI control characters that will make it print with a horizontal line through its center.

declare function strikethrough(input: string | number | Path): string;