ColorizeText

ColorizeText

new ColorizeText()

Source:
Provides static methods to colorize CLI text

Methods

(static) danger(arguments) → {string}

Source:
Show red colorized CLI text
Example
ColorizeText.danger('I am', 'dangerous!');

// returns 'I am dangerous!' in red color to show in Command Line Interface
Parameters:
Name Type Description
arguments Array.<string> The text strings to colorize
Returns:
Red CLI text
Type
string

(static) info(arguments) → {string}

Source:
Show yellow colorized CLI text
Example
ColorizeText.info('I am', 'an', 'info');

// returns 'I am an info' in red color to show in Command Line Interface
Parameters:
Name Type Description
arguments Array.<string> The text strings to colorize
Returns:
Yellow CLI text
Type
string

(static) warn(arguments) → {string}

Source:
Show magenta colorized CLI text
Example
ColorizeText.warn('I am', 'a', 'warn!');

// returns 'I am a warn!' in magenta color to show in Command Line Interface
Parameters:
Name Type Description
arguments Array.<string> The text strings to colorize
Returns:
Magenta CLI text
Type
string