Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

colors in node js console

// Second argument is inserted in place of %s

console.log('x1b[36m%sx1b[0m', 'I am cyan');  //cyan
console.log('x1b[33m%sx1b[0m', stringToMakeYellow);  //yellow

Reset = "x1b[0m"
Bright = "x1b[1m"
Dim = "x1b[2m"
Underscore = "x1b[4m"
Blink = "x1b[5m"
Reverse = "x1b[7m"
Hidden = "x1b[8m"

FgBlack = "x1b[30m"
FgRed = "x1b[31m"
FgGreen = "x1b[32m"
FgYellow = "x1b[33m"
FgBlue = "x1b[34m"
FgMagenta = "x1b[35m"
FgCyan = "x1b[36m"
FgWhite = "x1b[37m"

BgBlack = "x1b[40m"
BgRed = "x1b[41m"
BgGreen = "x1b[42m"
BgYellow = "x1b[43m"
BgBlue = "x1b[44m"
BgMagenta = "x1b[45m"
BgCyan = "x1b[46m"
BgWhite = "x1b[47m"
Comment

PREVIOUS NEXT
Code Example
Javascript :: three.js renderer background color 
Javascript :: javascript month name 
Javascript :: jquery select by name 
Javascript :: 2x speed youtube 
Javascript :: Uncaught ReferenceError: jsPDF is not defined 
Javascript :: random int between two numbers javascript 
Javascript :: go to anchor jquery 
Javascript :: react native debug apk 
Javascript :: jquery add contenteditable="true" 
Javascript :: how to get clicked radio button value in jquery 
Javascript :: javascript check if variable exists 
Javascript :: javascript loop array backwards 
Javascript :: random color generator javascript 
Javascript :: generate random whole numbers within a range javascript 
Javascript :: content of page fully loaded javascript 
Javascript :: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 
Javascript :: how to color console.log 
Javascript :: javascript check if function exists 
Javascript :: split into sentences at any punctuation javascript 
Javascript :: js if not undefined 
Javascript :: react native button round 
Javascript :: format amount in javascript 
Javascript :: excel date to javascript date 
Javascript :: datatables clear table 
Javascript :: js fileinput get content 
Javascript :: react native run ipad 
Javascript :: Root composer.json requires tymon/jwt-auth ^0.5.12 - satisfiable by tymon/jwt-auth[0.5.12]. 
Javascript :: javascript scroll to element 
Javascript :: regexs url image 
Javascript :: jquery get element by class and data attribute 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =