Module: style
References
strConcat
Re-exports strConcat
indent
Re-exports indent
Type Aliases
StringStyle
Ƭ StringStyle: Object
Type declaration
Name | Type |
---|---|
bold? | boolean |
underline? | boolean |
color? | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "brightRed" | "brightGreen" | "brightYellow" | "brightBlue" | "brightMagenta" | "brightCyan" | "brightWhite" |
reset? | boolean |
Defined in
Variables
ansiStyles
• Const
ansiStyles: Object
Type declaration
Name | Type |
---|---|
reset | string |
bold | string |
underline | string |
black | string |
Defined in
ansiColors
• Const
ansiColors: Object
Type declaration
Name | Type |
---|---|
red | string |
green | string |
yellow | string |
blue | string |
magenta | string |
cyan | string |
white | string |
gray | string |
grey | string |
brightRed | string |
brightGreen | string |
brightYellow | string |
brightBlue | string |
brightMagenta | string |
brightCyan | string |
brightWhite | string |
Defined in
StringStyle
• Const
StringStyle: ZodObject
<StringStyle
>
Defined in
Functions
format
▸ format(string
, style?
): string
Parameters
Name | Type |
---|---|
string | string |
style | Object |
style.bold? | boolean |
style.underline? | boolean |
style.color? | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "brightRed" | "brightGreen" | "brightYellow" | "brightBlue" | "brightMagenta" | "brightCyan" | "brightWhite" |
style.reset? | boolean |
Returns
string
Defined in
stripStyle
▸ stripStyle(string
): string
Parameters
Name | Type |
---|---|
string | string |
Returns
string