Awesome-Automations icon indicating copy to clipboard operation
Awesome-Automations copied to clipboard

make console.log colorful

Open vivek80801 opened this issue 2 years ago • 1 comments

add colors to console.log in javascript projects.

For nodejs:

// This should be red color
console.log("\x1b[31m; %s \x1b[0m", "Hello world");
// for some more colors
for(let i =1; i <10; i++){
   for(let j = 30; j<38; j++){
     for(let k = 40; k<48; k++){
         console.log(`\x1b[${i};${k};${j}m Hello world \x1b[0m`);
        }
       }
    }

vivek80801 avatar Dec 10 '21 14:12 vivek80801

It's great having you contribute to this project

Welcome to our project :nerd_face:

Our developers will respond you as soon as possible 🤓 . Any questions let us know.

github-actions[bot] avatar Dec 10 '21 14:12 github-actions[bot]