Comparing version
@@ -1,4 +0,4 @@ | ||
let FORCE_COLOR, NODE_DISABLE_COLORS, TERM, isTTY=true; | ||
let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; | ||
if (typeof process !== 'undefined') { | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env); | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env); | ||
isTTY = process.stdout.isTTY; | ||
@@ -8,3 +8,3 @@ } | ||
const $ = exports.$ = { | ||
enabled: !NODE_DISABLE_COLORS && TERM !== 'dumb' && ( | ||
enabled: !NODE_DISABLE_COLORS && !NO_COLOR && TERM !== 'dumb' && ( | ||
FORCE_COLOR != null && FORCE_COLOR !== '0' || isTTY | ||
@@ -11,0 +11,0 @@ ) |
'use strict'; | ||
let FORCE_COLOR, NODE_DISABLE_COLORS, TERM, isTTY=true; | ||
let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; | ||
if (typeof process !== 'undefined') { | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env); | ||
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env); | ||
isTTY = process.stdout.isTTY; | ||
@@ -10,3 +10,3 @@ } | ||
const $ = { | ||
enabled: !NODE_DISABLE_COLORS && TERM !== 'dumb' && ( | ||
enabled: !NODE_DISABLE_COLORS && !NO_COLOR && TERM !== 'dumb' && ( | ||
FORCE_COLOR != null && FORCE_COLOR !== '0' || isTTY | ||
@@ -13,0 +13,0 @@ ), |
{ | ||
"name": "kleur", | ||
"version": "4.0.3", | ||
"version": "4.1.0", | ||
"repository": "lukeed/kleur", | ||
@@ -5,0 +5,0 @@ "description": "The fastest Node.js library for formatting terminal text with ANSI colors~!", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19772
0.67%