Answers for "color console output javascript"

17

js console log with color

console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
Posted by: Guest on April-09-2020
0

how to change the color of a console.log in javascript

// Download the npm package "colors"
// npm i colors

var colors = require("colors");

console.log("Hello World".blue);

// output: Hello World (Its blue btw lmao)
Posted by: Guest on August-02-2021
1

console.log with color font

var colors = require('colors');

console.log('i am black'.black);
console.log('i am red'.red);
console.log('i am green'.green);
console.log('i am black'.yellow);
console.log('i am blue'.blue);
console.log('i am magenta'.magenta);
console.log('i am cyan'.cyan);
console.log('i am white'.white);
console.log('i am gray'.gray);
console.log('i am grey'.grey);
Posted by: Guest on December-10-2020

Code answers related to "color console output javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language