ansi-colors
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -9,5 +9,12 @@ 'use strict'; | ||
const hasColor = () => { | ||
if (typeof process !== 'undefined') { | ||
return process.env.FORCE_COLOR !== '0'; | ||
} | ||
return false; | ||
}; | ||
const create = () => { | ||
const colors = { | ||
enabled: process.env.FORCE_COLOR !== '0', | ||
enabled: hasColor(), | ||
visible: true, | ||
@@ -14,0 +21,0 @@ styles: {}, |
{ | ||
"name": "ansi-colors", | ||
"description": "Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"homepage": "https://github.com/doowb/ansi-colors", | ||
@@ -6,0 +6,0 @@ "author": "Brian Woodward (https://github.com/doowb)", |
'use strict'; | ||
const isHyper = process.env.TERM_PROGRAM === 'Hyper'; | ||
const isWindows = process.platform === 'win32'; | ||
const isLinux = process.platform === 'linux'; | ||
const isHyper = typeof process !== 'undefined' && process.env.TERM_PROGRAM === 'Hyper'; | ||
const isWindows = typeof process !== 'undefined' && process.platform === 'win32'; | ||
const isLinux = typeof process !== 'undefined' && process.platform === 'linux'; | ||
@@ -7,0 +7,0 @@ const common = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26143
436