Prettify Node.js console logs with some nice colors, easily.
npm install @ivnatsr/color-logs
import { cl } from '@ivnatsr/color-logs'
console.log(cl.blue('Hello, world!'))
You can also pass a styles object to set font style and decorations:
console.log(cl.blue('Hello, world!', { font: 'bold', decoration: 'underline' }))
Combining font styles:
console.log(
cl.blue('Hello, world!', {
font: ['bold', 'italic'],
decoration: 'underline'
})
)
blue
yellow
red
cyan
green
magenta
white
gray
brightRed
brightGreen
brightYellow
brightBlue
brightMagenta
brightCyan
brightWhite
bold
italic
underline
strikethrough