1.0.6 • Published 4 years ago

console-stylizer v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago