From cf3525489e3ba1e54516ab34f82a0297fc5274db Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Wed, 22 Sep 2021 01:33:34 +0900 Subject: [PATCH] Import process dependencies --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9d437b6..a6339f7 100644 --- a/index.js +++ b/index.js @@ -1,10 +1,9 @@ import * as tty from "tty" - -const env = process.env +import { env, platform } from "process" const isDisabled = "NO_COLOR" in env const isForced = "FORCE_COLOR" in env -const isWindows = process.platform === "win32" +const isWindows = platform === "win32" const isCompatibleTerminal = tty && tty.isatty(1) && env.TERM && env.TERM !== "dumb"