Skip to content

Commit

Permalink
Import process dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Sep 21, 2021
1 parent d7b6fc9 commit cf35254
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit cf35254

Please sign in to comment.