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

supports-color

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supports-color - npm Package Compare versions

Comparing version 5.2.0 to 5.3.0

10

index.js

@@ -51,2 +51,6 @@ 'use strict';

if (stream && !stream.isTTY && forceColor !== true) {
// VS code debugger doesn't have isTTY set
if (env.VSCODE_PID) {
return 1;
}
return 0;

@@ -88,2 +92,6 @@ }

if (env.COLORTERM === 'truecolor') {
return 3;
}
if ('TERM_PROGRAM' in env) {

@@ -95,4 +103,2 @@ const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);

return version >= 3 ? 3 : 2;
case 'Hyper':
return 3;
case 'Apple_Terminal':

@@ -99,0 +105,0 @@ return 2;

2

package.json
{
"name": "supports-color",
"version": "5.2.0",
"version": "5.3.0",
"description": "Detect whether a terminal supports color",

@@ -5,0 +5,0 @@ "license": "MIT",

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