The SyslogPro class for sending syslog messages
Classes
Methods
(private, inner) rgbToAnsi(hex) → {Promise}
Format the ANSI foreground color code from a RGB hex code or ANSI color code
Parameters:
Name | Type | Description |
---|---|---|
hex |
string | The color hex code in the form of #FFFFFF or Number of the ANSI color code (30-37 Standard & 0-255 Extended) |
Throws:
-
- A Format Error
- Type
- Error
Returns:
- The formated ANSI color code
- Type
- Promise