Skip to content

Class Ansi

Source: ansi.ts

Provides utility functions for wrapping text in ANSI escape codes.

See

ANSI

Methods

black()

static black(text: string): string

Makes text black using ANSI.fg.black.

Parameters

text

string

Returns

string


red()

static red(text: string): string

Makes text red using ANSI.fg.red.

Parameters

text

string

Returns

string


green()

static green(text: string): string

Makes text green using ANSI.fg.green.

Parameters

text

string

Returns

string


yellow()

static yellow(text: string): string

Makes text yellow using ANSI.fg.yellow.

Parameters

text

string

Returns

string


blue()

static blue(text: string): string

Makes text blue using ANSI.fg.blue.

Parameters

text

string

Returns

string


magenta()

static magenta(text: string): string

Makes text magenta using ANSI.fg.magenta.

Parameters

text

string

Returns

string


cyan()

static cyan(text: string): string

Makes text cyan using ANSI.fg.cyan.

Parameters

text

string

Returns

string


white()

static white(text: string): string

Makes text white using ANSI.fg.white.

Parameters

text

string

Returns

string


bold()

static bold(text: string): string

Makes text bold using ANSI.decoration.bold.

Parameters

text

string

Returns

string


dim()

static dim(text: string): string

Makes text dim using ANSI.decoration.dim.

Parameters

text

string

Returns

string

Built by Prozilla