Skip to content

Commit

Permalink
Use stdout.isTTY, avoid tty. Fixes #67
Browse files Browse the repository at this point in the history
Yet another try to fix #67
  • Loading branch information
alexeyten committed Sep 3, 2024
1 parent 4e94689 commit 7fb3313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picocolors.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let isColorSupported =
("FORCE_COLOR" in env ||
argv.includes("--color") ||
process.platform === "win32" ||
(require != null && require("tty").isatty(1) && env.TERM !== "dumb") ||
(process.stdout && process.stdout.isTTY && env.TERM !== "dumb") ||
"CI" in env)

let formatter =
Expand Down

0 comments on commit 7fb3313

Please sign in to comment.