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.1.0 to 1.2.0

15

index.js

@@ -0,1 +1,3 @@

import process from 'node:process';
export default function isUnicodeSupported() {

@@ -6,8 +8,9 @@ if (process.platform !== 'win32') {

return Boolean(process.env.CI) ||
Boolean(process.env.WT_SESSION) || // Windows Terminal
process.env.ConEmuTask === '{cmd::Cmder}' || // ConEmu and cmder
process.env.TERM_PROGRAM === 'vscode' ||
process.env.TERM === 'xterm-256color' ||
process.env.TERM === 'alacritty';
return Boolean(process.env.CI)
|| Boolean(process.env.WT_SESSION) // Windows Terminal
|| process.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|| process.env.TERM_PROGRAM === 'vscode'
|| process.env.TERM === 'xterm-256color'
|| process.env.TERM === 'alacritty'
|| process.env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
}

8

package.json
{
"name": "is-unicode-supported",
"version": "1.1.0",
"version": "1.2.0",
"description": "Detect whether the terminal supports Unicode",

@@ -39,6 +39,6 @@ "license": "MIT",

"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.38.2"
"ava": "^4.0.1",
"tsd": "^0.19.1",
"xo": "^0.47.0"
}
}

@@ -11,5 +11,5 @@ # is-unicode-supported

```sh
npm install is-unicode-supported
```
$ npm install is-unicode-supported
```

@@ -16,0 +16,0 @@ ## Usage

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