You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I need to un-color the colorful text, but no such methods offered through README.md. I have to write the code snippet by myself. Actually, colors contains such method named colors.strip() or colors.stripColors(). My questions are,
Why aren't they documented in README?
My I use colors.strip() safely?
The text was updated successfully, but these errors were encountered:
They're safe to use. There is the reset style, which you might want to use instead (e.g. 'test'.blue.reset), but otherwise, yeah, strip()/stripColors` could probably have some documentation added at some point.
Maybe reset was intended to be used that way, but because the color of the sting cannot be overwritten it is doing nothing. A mean 'abc'.green.blue will be green and in the same way 'abc'.green.reset would be green as well.
Sometimes I need to un-color the colorful text, but no such methods offered through README.md. I have to write the code snippet by myself. Actually, colors contains such method named
colors.strip()
orcolors.stripColors()
. My questions are,colors.strip()
safely?The text was updated successfully, but these errors were encountered: