1.0.6 • Published 5 years ago

console-stylizer v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

console-stylizer

Build Status

Library for console messages stylization.

Setup

  1. Install npm package in your project with:
npm install console-stylizer
  1. Import styliser function and enums with available console types and colors
import {stylize, ConsoleType, ColorsPalette} from 'console-stylizer';
  1. Run initializer with console type you want to stylise
// Set yellow font color and magenta bacroundg color to console.warn 
stylize(ConsoleType.Log, {fontColor: ColorsPalette.yellow, bgColor: ColorsPalette.magenta});

// Set green font color to console.warn 
stylize(ConsoleType.Error, {fontColor: ColorsPalette.green});
  1. Check that styles applied
console.log('test string');

console.warn({test: 'object'});
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago