Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

supports-ansi

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supports-ansi - npm Package Compare versions

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc