Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make console.log colorful #59

Open
vivek80801 opened this issue Dec 10, 2021 · 1 comment
Open

make console.log colorful #59

vivek80801 opened this issue Dec 10, 2021 · 1 comment
Labels
good first issue Good for newcomers Idea Idea for new automation

Comments

@vivek80801
Copy link
Contributor

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`);
        }
       }
    }
@github-actions
Copy link

It's great having you contribute to this project

Welcome to our project 🤓

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

@Arsenic-ATG Arsenic-ATG added good first issue Good for newcomers Idea Idea for new automation labels Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Idea Idea for new automation
Projects
None yet
Development

No branches or pull requests

2 participants