Socket
Socket
Sign inDemoInstall

is-unicode-supported

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

3

index.js
export default function isUnicodeSupported() {
if (process.platform !== 'win32') {
return true;
return process.env.TERM !== 'linux'; // Linux console (kernel)
}

@@ -8,2 +8,3 @@

Boolean(process.env.WT_SESSION) || // Windows Terminal
process.env.ConEmuTask === '{cmd::Cmder}' || // ConEmu and cmder
process.env.TERM_PROGRAM === 'vscode' ||

@@ -10,0 +11,0 @@ process.env.TERM === 'xterm-256color' ||

{
"name": "is-unicode-supported",
"version": "1.0.0",
"version": "1.1.0",
"description": "Detect whether the terminal supports Unicode",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc