Comparing version
let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; | ||
if (typeof process !== 'undefined') { | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env); | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); | ||
isTTY = process.stdout && process.stdout.isTTY; | ||
@@ -5,0 +5,0 @@ } |
@@ -5,3 +5,3 @@ 'use strict'; | ||
if (typeof process !== 'undefined') { | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env); | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}); | ||
isTTY = process.stdout && process.stdout.isTTY; | ||
@@ -8,0 +8,0 @@ } |
{ | ||
"name": "kleur", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"repository": "lukeed/kleur", | ||
@@ -12,2 +12,3 @@ "description": "The fastest Node.js library for formatting terminal text with ANSI colors~!", | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.mjs", | ||
@@ -17,2 +18,3 @@ "require": "./index.js" | ||
"./colors": { | ||
"types": "./colors.d.ts", | ||
"import": "./colors.mjs", | ||
@@ -19,0 +21,0 @@ "require": "./colors.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20250
0.43%