escapist
A minimal console styling library 🚀
API
Escapist adds 2 new functions to the console
global object;
console.setColor(id)
Sets the console's color.
(ids can be found in the escapist.colors
object).
Parameters
id
: int
console.resetColor()
Resets the console's color to the default color.
Escapist also adds an object containing color IDs for you to use in the console.setColor
function;
escapist.colors
foreground
black
: 0
red
: 1
green
: 2
,yellow
: 3
blue
: 4
magenta
: 5
cyan
: 6
white
: 7
brightRed
: 8
brightGreen
: 9
brightYellow
: 10
brightBlue
: 11
brightMagenta
: 12
brightCyan
: 13
background
black
: 14
red
: 15
green
: 16
yellow
: 17
blue
: 18
magenta
: 19
cyan
: 20
white
: 21
brightRed
: 22
brightGreen
: 23
brightYellow
: 24
brightBlue
: 25
brightMagenta
: 26
brightCyan
: 27
styles
bold
: 28
underline
: 29
reversed
: 30