Skip to content

Commit 0d3671a

Browse files
authored
Merge pull request #65 from joscha/patch-1
docs: add hint about forcing chalk coloring
2 parents 51eaa25 + e6c12c9 commit 0d3671a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/npm-run-all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Those are similar to [Shell Parameters](http://www.gnu.org/software/bash/manual/
195195
- If `--print-label` option is given, some tools in scripts might stop coloring their output.
196196
Because some coloring library (e.g. [chalk]) will stop coloring if `process.stdout` is not a TTY.
197197
`npm-run-all` changes the `process.stdout` of child processes to a pipe in order to add labels to the head of each line if `--print-label` option is given.<br>
198-
For example, [eslint] stops coloring under `npm-run-all --print-label`. But [eslint] has `--color` option to force coloring, we can use it.
198+
For example, [eslint] stops coloring under `npm-run-all --print-label`. But [eslint] has `--color` option to force coloring, we can use it. For anything [chalk] based you can set the environment variable `FORCE_COLOR=1` to produce colored output anyway.
199199

200200
[glob]: https://www.npmjs.com/package/glob#glob-primer
201201
[chalk]: https://www.npmjs.com/package/chalk

0 commit comments

Comments
 (0)