0.0.4 • Published 2 years ago
tinguir v0.0.4

tinguir
tinguir. Verbo transitivo:
1 Darlle a algo unha determinada cor distinta da que tiña, particularmente mediante tintura.
Levou unha saia á tinturaría para tinguila de negro. Tinguiu o pelo.
Intro
tinguir is just for coloring your texts using ANSI escape codes.
Install
npm i tinguirUsage
import {magenta_bold} from 'tinguir'
console.log( magenta_bold()'This text will be magenta and bolded!) )API
Color functions
Available colors are:
blackblack_boldblack_lightblack_italicblack_underblack_invertblack_strikeredred_boldred_lightred_italicred_underred_invertred_strikegreengreen_boldgreen_lightgreen_italicgreen_undergreen_invertgreen_strikeyellowyellow_boldyellow_lightyellow_italicyellow_underyellow_invertyellow_strikeblueblue_boldblue_lightblue_italicblue_underblue_invertblue_strikemagentamagenta_boldmagenta_lightmagenta_italicmagenta_undermagenta_invertmagenta_strikecyancyan_boldcyan_lightcyan_italiccyan_undercyan_invertcyan_strikewhitewhite_boldwhite_lightwhite_italicwhite_underwhite_invertwhite_strikegraygray_boldgray_lightgray_italicgray_undergray_invertgray_strike
uncolor
There's also uncolor(colored_string) function, which servers for, surprise, remove color escape codes from a string.