Skip to content
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

Allow setting support level with FORCE_COLOR environment variable #85

Merged
merged 6 commits into from Dec 21, 2018

Conversation

deecewan
Copy link
Contributor

You can now do FORCE_COLOR=2 or FORCE_COLOR=3 to specify the level that should be used.

All existing tests still pass, but I'm not certain this won't break external code. If people have already used numbers other that 1 to enable the flag, this will change behaviour.

Closes #78

- All existing tests still pass, but I'm not certain this won't break
  external code
- Closes chalk#78
@deecewan deecewan closed this Oct 13, 2018
@deecewan deecewan reopened this Oct 13, 2018
index.js Show resolved Hide resolved
test.js Show resolved Hide resolved
@sindresorhus
Copy link
Member

Needs to be documented in the readme.

@sindresorhus sindresorhus changed the title Allow setting support level with FORCE_COLOR flag Allow setting support level with FORCE_COLOR environment variable Dec 21, 2018
@sindresorhus sindresorhus merged commit 255972b into chalk:master Dec 21, 2018
sindresorhus added a commit that referenced this pull request Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants