0.0.5 • Published 2 years ago
consolestylerc v0.0.5
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 |