Reference Source
import ColorPrinters from 'squidwarc/lib/utils/colorPrinters.js'
public class | source

ColorPrinters

Utility class for displaying colored text in console

Static Method Summary

Static Public Methods
public static

blue(args: *)

Blue colored console.log

public static

boldBlueGreen(bb: *, rest: *)

Bold blue first arg, green rest

public static

bred(args: *)

Bright red colored console.log

public static

configError(m: *, config: *)

Display message about how the crawl config is broke

public static

crawlerOpt(f: *, r: *)

Display an crawler option ack

public static

cyan(args: *)

Cyan colored console.log

public static

error(m: string, error: Error)

Display an error message and pretty print the exception

public static

green(args: *)

Green colored console.log

public static

magenta(args: *)

Magenta colored console.log

public static

red(args: *)

Red colored console.log

public static

yellow(args: *)

Yellow colored console.log

Static Public Methods

public static blue(args: *) source

Blue colored console.log

Params:

NameTypeAttributeDescription
args *

public static boldBlueGreen(bb: *, rest: *) source

Bold blue first arg, green rest

Params:

NameTypeAttributeDescription
bb *
rest *

public static bred(args: *) source

Bright red colored console.log

Params:

NameTypeAttributeDescription
args *

public static configError(m: *, config: *) source

Display message about how the crawl config is broke

Params:

NameTypeAttributeDescription
m *
config *

public static crawlerOpt(f: *, r: *) source

Display an crawler option ack

Params:

NameTypeAttributeDescription
f *
r *

public static cyan(args: *) source

Cyan colored console.log

Params:

NameTypeAttributeDescription
args *

public static error(m: string, error: Error) source

Display an error message and pretty print the exception

Params:

NameTypeAttributeDescription
m string

The message to display

error Error

The exception to pretty print

public static green(args: *) source

Green colored console.log

Params:

NameTypeAttributeDescription
args *

public static magenta(args: *) source

Magenta colored console.log

Params:

NameTypeAttributeDescription
args *

public static red(args: *) source

Red colored console.log

Params:

NameTypeAttributeDescription
args *

public static yellow(args: *) source

Yellow colored console.log

Params:

NameTypeAttributeDescription
args *