supports-ansi
Advanced tools
Comparing version 1.0.3 to 1.0.4
11
index.js
@@ -5,3 +5,2 @@ 'use strict'; | ||
const isMinGW = require('is-mingw'); | ||
const isWsl = require('is-wsl'); | ||
@@ -18,3 +17,7 @@ const env = process.env; | ||
// Be natively supported on Unix-like systems. | ||
// Be natively supported on Unix-like systems includes WSL. | ||
// NOTE: WSL is included with Windows 10 v.1607 and later. It might be a | ||
// problem to use CMD/PowerShell as the terminal with WSL on Windows 10 | ||
// Insider Preview before v.1607. | ||
// @link https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux | ||
if (process.platform !== 'win32') { | ||
@@ -35,4 +38,4 @@ return true; | ||
// Be supported on Cygwin/MinGW(MSYS2)/WSL with Mintty. | ||
if (isCygwin || isMinGW || isWsl) { | ||
// Be supported on Cygwin/MinGW(MSYS2) with Mintty. | ||
if (isCygwin || isMinGW) { | ||
return true; | ||
@@ -39,0 +42,0 @@ } |
{ | ||
"name": "supports-ansi", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Detect whether a terminal supports ANSI escape sequences", | ||
@@ -29,5 +29,4 @@ "main": "index.js", | ||
"is-cygwin": "^1.0.1", | ||
"is-mingw": "^1.0.1", | ||
"is-wsl": "^1.1.0" | ||
"is-mingw": "^1.0.1" | ||
} | ||
} |
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
4073
2
51
- Removedis-wsl@^1.1.0
- Removedis-wsl@1.1.0(transitive)