GeezerVison is showing github.com — doc: fix env variable name in `util.styleText` · nodejs/node@0557d60
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/util.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2418,7 +2418,7 @@ changes: |
2418 | 2418 | - v20.18.0 |
2419 | 2419 | pr-url: https://github.com/nodejs/node/pull/54389 |
2420 | 2420 | description: Respect isTTY and environment variables |
2421 | | - such as NO_COLORS, NODE_DISABLE_COLORS, and FORCE_COLOR. |
| 2421 | + such as NO_COLOR, NODE_DISABLE_COLORS, and FORCE_COLOR. |
2422 | 2422 | --> |
2423 | 2423 |
|
2424 | 2424 | * `format` {string | Array} A text format or an Array |
@@ -2430,7 +2430,7 @@ changes: |
2430 | 2430 |
|
2431 | 2431 | This function returns a formatted text considering the `format` passed |
2432 | 2432 | for printing in a terminal. It is aware of the terminal's capabilities |
2433 | | -and acts according to the configuration set via `NO_COLORS`, |
| 2433 | +and acts according to the configuration set via `NO_COLOR`, |
2434 | 2434 | `NODE_DISABLE_COLORS` and `FORCE_COLOR` environment variables. |
2435 | 2435 |
|
2436 | 2436 | ```mjs |
|