3.0.4 • Published 2 years ago

beautify.log v3.0.4

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

Beautify log

CRAN/METACRAN CRAN/METACRAN CRAN/METACRAN CRAN/METACRAN

Description

A Node.js lib to beautify the console.log from JavaScript with colors, making it easy and useful.

How to use

  • type yarn add beautify.log or npm i beautify.log -s

Documentation

All parameters are case-insensitive.

ParameterResult
{reset}Resets to the default color
{bright}Shines the text
{dim}Dims the tex
{underscore}Puts an underline
{blink}Blinks the text
{reverse}Reverses background and foreground color
{hidden}Hides the text
{fgBlack}Foreground's color
{fgRed}Foreground's color
{fgGreen}Foreground's color
{fgYellow}Foreground's color
{fgBlue}Foreground's color
{fgMagenta}Foreground's color
{fgCyan}Foreground's color
{fgWhite}Foreground's color
{bgBlack}Background's color
{bgRed}Background's color
{bgGreen}Background's color
{bgYellow}Background's color
{bgBlue}Background's color
{bgMagenta}Background's color
{bgCyan}Background's color
{bgWhite}Background's color

Usage

const beautify = require('beautify.log').default; // or import beautify from 'beautify.log';

beautify.log('{fgRed}Hello, {fgGreen}world!');
beautify.log('{bgWhite}{fgRed}Hello, {bgRed}{fgGreen}world!');
beautify.log('{fgGreen}Hello, {fgRed}world!');
beautify.log('{dim}{fgRed}Hello, {fgGreen}world!');
beautify.log('{underscore}{fgRed}Hello, {fgGreen}world!');
beautify.log('{bright}{fgRed}Hello, {fgGreen}world!');
beautify.log(
  '{bright}{fgYellow}Lorem ipsum dolor {fgBlue}sit amet consectetur {fgCyan}adipisicing elit.'
);
beautify.log(
  '{fgYellow}Lorem ipsum dolor {reset}{bgRed}sit amet consectetur{reset} {fgCyan}adipisicing elit.'
);
beautify.log(
  '{reverse}{fgYellow}Lorem ipsum dolor{reset} {reverse}{bgRed}sit amet consectetur{reset} {reverse}{fgCyan}adipisicing elit.'
);

Output

who-does-not-follow-me

Author

@lucasgdb
3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago