npm.io
0.0.5 • Published 2 years ago

consolestylerc

Licence
GPL-3.0-or-later
Version
0.0.5
Deps
0
Size
8 kB
Vulns
0
Weekly
0
Stars
4

console style rc

Simple cli styler

init

const styler = new (require('consolestylerc').base();

simple foreground color change

styler.style(
    'test red text',
    {
         'color':'red'
    }
);

simple foreground color change

styler.style(
    'test text with blue background',
    {
         'background':'blue'
    }
);

simple effect

styler.style(
    'blinking  test text',
    {
         'effect':'blink'
    }
);

simple multiple style

styler.style(
    'styled test text',
    {
         'color':'cyan',
         'background':'cyan',
         'effect':[
            'blink',
            'underline'
         ]
    }
);

supported styles

style Types
bold effect
dim effect
italic effect
underline effect
blink effect
inverse effect
hidden effect
strikethrough effect
black color,background
red color,background
green color,background
yellow color,background
blue color,background
cyan color,background
white color,background
grey color