Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 405 Bytes

File metadata and controls

31 lines (16 loc) · 405 Bytes

tinky


tinky / applyTextStyles

Function: applyTextStyles()

applyTextStyles(text, styles): string

Applies text styles (color, bold, etc.) to a string using Ansis.

Parameters

text

string

The text to apply styles to.

styles

TextStyles

The styles to apply.

Returns

string

The styled text.