0.1.3 • Published 2 years ago

log-colored v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

log-colored

Log with COLORS for your console.

Installing

Using npm:

$ npm install log-colored

Example

const log_c =  require('log-colored');
//success
log_c.success("log success!");
//info
log_c.info("log info!");
//warning
log_c.warning("log warning!");
//error
log_c.error("log error!");

Image

applying colors and styles

text colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray
  • grey

bright text colors

  • brightRed
  • brightGreen
  • brightYellow
  • brightBlue
  • brightMagenta
  • brightCyan
  • brightWhite

background colors

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite
  • bgGray
  • bgGrey

bright background colors

  • bgBrightRed
  • bgBrightGreen
  • bgBrightYellow
  • bgBrightBlue
  • bgBrightMagenta
  • bgBrightCyan
  • bgBrightWhite

styles

  • reset
  • bold
  • dim
  • italic
  • underline
  • inverse
  • hidden
  • strikethrough

extras

  • rainbow
  • zebra
  • america
  • trap
  • random
const log_c =  require('log-colored');

log_c.success("log success!".bgBrightGreen);

log_c.info("log info!".bgBrightBlue);

log_c.warning("log warning!".bgBrightYellow);

log_c.error("log error!".bgBrightRed);

Image

const log_c =  require('log-colored');

//success
log_c.success("log success!".green);

//info
log_c.info("log info!".blue);

//warning
log_c.warning("log warning!".yellow);

//error
log_c.error("log error!".red);

Image

log-colored uses as base colors which you can see on your web page (github.com/Marak/colors.js) Enjoy.

Donate

Image

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago