0.0.5 • Published 2 years ago

consolestylerc v0.0.5

Weekly downloads
31
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

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

styleTypes
boldeffect
dimeffect
italiceffect
underlineeffect
blinkeffect
inverseeffect
hiddeneffect
strikethrougheffect
blackcolor,background
redcolor,background
greencolor,background
yellowcolor,background
bluecolor,background
cyancolor,background
whitecolor,background
greycolor