consolestylerc

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i consolestylerc

Weekly Downloads

1

Version

0.0.5

License

GPL-3.0-or-later

Unpacked Size

7.9 kB

Total Files

4

Last publish

Collaborators

  • soldy