1.0.3 • Published 12 months ago

@ivnatsr/color-logs v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Color-logs

Prettify Node.js console logs with some nice colors, easily.

Install

npm install @ivnatsr/color-logs

Basic usage

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'
  })
)

Supported styles:

Colors

  • blue
  • yellow
  • red
  • cyan
  • green
  • magenta
  • white
  • gray
  • brightRed
  • brightGreen
  • brightYellow
  • brightBlue
  • brightMagenta
  • brightCyan
  • brightWhite

Font

  • bold
  • italic

Decoration

  • underline
  • strikethrough
1.0.2

12 months ago

1.0.1

12 months ago

1.0.3

12 months ago

1.0.0

1 year ago