| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This adds some examples what values can be used to enforce a specific color support in Node.js.
|
@BridgeAR build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/2695/pipeline |
Sorry, something went wrong.
Co-Authored-By: BridgeAR <ruben@bridgewater.de>
Co-Authored-By: BridgeAR <ruben@bridgewater.de>
| This rule does not apply to Windows OS, CI environments, and some other rare | ||
| cases. | ||
|
|
||
| * 2 colors: `NODE_DISABLE_COLORS = 1` |
There was a problem hiding this comment.
This works on Windows
Sorry, something went wrong.
There was a problem hiding this comment.
Good catch. I updated the comment again to reflect that. PTAL.
Sorry, something went wrong.
|
Hm... Hyper doesn't support 24 bit colors anymore and I used that in here as example. Therefore I consider doing something else instead of these examples as they could change over time without the change being reflected in the docs. |
Sorry, something went wrong.
This adds support to enforce a specific color depth by checking the `FORCE_COLOR` environment variable similar to `chalk`. On top of that we also add support for the `NO_COLOR` environment variable as suggested by https://no-color.org/. PR-URL: nodejs#26485 Refs: nodejs#26248 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This adds support to enforce a specific color depth by checking the `FORCE_COLOR` environment variable similar to `chalk`. On top of that we also add support for the `NO_COLOR` environment variable as suggested by https://no-color.org/. PR-URL: nodejs#26485 Refs: nodejs#26248 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This adds support to enforce a specific color depth by checking the `FORCE_COLOR` environment variable similar to `chalk`. On top of that we also add support for the `NO_COLOR` environment variable as suggested by https://no-color.org/. PR-URL: #26485 Refs: #26248 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
| Back | FazBrowse Home | New Git URL |
This adds some examples what values can be used to enforce a specific
color support in Node.js.
Checklist