cara mewarnai konsol.log
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
If-dev
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
console.log('%c My txt ', 'My css');
// Example
console.log('%c Hello world ', 'background: #222; color: #bada55');
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);
// Download the npm package "colors"
// npm i colors
var colors = require("colors");
console.log("Hello World".blue);
// output: Hello World (Its blue btw lmao)
console.log("%cThis Is Line One ", "font-size:30px");o
var colors = require('colors');
console.log('This is rainbow'.rainbow);
console.log('This is zebra'.zebra);
console.log('This is america'.america);
console.log('This is trap'.trap);
console.log('This is random'.random);
console.log('This is random2'.random);
console.log('This is random3'.random);