-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to 2.0.0 #70
Labels
docs
Docs and not so docs
Comments
@jorgebucaran What's the rationale behind default colouring functions being enabled by default, rather than relying on auto-detect by default, btw? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're upgrading from
1.x
:createColors(options)
that returns an object with all the available color functions. Terminal support is auto-detected, override it viaoptions.useColor
.options.enabled
has been removed in favor ofcreateColors(options)
.isColorSupported
constant export.true
if the terminal supports color,false
otherwise.If you were previously using
options.enabled
and wish to override automatic color detection, usecreateColors()
.The text was updated successfully, but these errors were encountered: