mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added magenta color
This commit is contained in:
@@ -37,6 +37,7 @@ const colors = [
|
||||
'green',
|
||||
'yellow',
|
||||
'blue',
|
||||
'magenta',
|
||||
'cyan'
|
||||
]
|
||||
|
||||
@@ -114,6 +115,7 @@ function C (c) {
|
||||
if (c === 'green') { return '\x1b[32m' }
|
||||
if (c === 'yellow') { return '\x1b[33m' }
|
||||
if (c === 'blue') { return '\x1b[34m' }
|
||||
if (c === 'magenta') { return '\x1b[35m' }
|
||||
if (c === 'cyan') { return '\x1b[36m' }
|
||||
return '\x1b[0m'
|
||||
}
|
||||
|
Reference in New Issue
Block a user