ColoTerm is a small JavaScript Code that replace the old console.log() function, with ColoTerm add a nice color and amazing background color to your terminal. Make it Colored!
Use the package manager npm to install ColoTerm.
npm i coloterm
• black • red • green • yellow • blue • magenta • cyan • white
• brightRed • brightGreen • brightYellow • brightBlue • brightMagenta • brightCyan • brightWhite
• black • red • green • yellow • blue • magenta • cyan • white
• brightRed • brightGreen • brightYellow • brightBlue • brightMagenta • brightCyan • brightWhite
const coloterm = require('coloterm');
// Print 'text' to terminal
coloterm.log('this is text', {
color: "red",
background: "white"
})
// return 'text' after colored then print it to terminal
const text = coloterm.text('this is text', {
color: "red",
background: "white"
});
console.log(text)