diff options
author | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
---|---|---|
committer | Scoots Dash <contact@minteck.org> | 2022-04-23 14:12:30 +0000 |
commit | a927497b43cbe1438f3d7478932f3f7d03ea347c (patch) | |
tree | 0a3c88978b4294fb30afad58daa86c46fbedc2f6 /node_modules/is-unicode-supported | |
parent | ba5fa694351774f2684c1aefdc215da5c6f39ba6 (diff) | |
parent | f0db5bbbcd623812a391862d217519afafe197c6 (diff) | |
download | twilight-trunk.tar.gz twilight-trunk.tar.bz2 twilight-trunk.zip |
Disable the Twilight Package Manager
See merge request minteck/twilight!1
Diffstat (limited to 'node_modules/is-unicode-supported')
-rw-r--r-- | node_modules/is-unicode-supported/index.d.ts | 12 | ||||
-rw-r--r-- | node_modules/is-unicode-supported/index.js | 12 | ||||
-rw-r--r-- | node_modules/is-unicode-supported/license | 9 | ||||
-rw-r--r-- | node_modules/is-unicode-supported/package.json | 43 | ||||
-rw-r--r-- | node_modules/is-unicode-supported/readme.md | 35 |
5 files changed, 0 insertions, 111 deletions
diff --git a/node_modules/is-unicode-supported/index.d.ts b/node_modules/is-unicode-supported/index.d.ts deleted file mode 100644 index 944a878..0000000 --- a/node_modules/is-unicode-supported/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** -Detect whether the terminal supports Unicode. - -@example -``` -import isUnicodeSupported from 'is-unicode-supported'; - -isUnicodeSupported(); -//=> true -``` -*/ -export default function isUnicodeSupported(): boolean; diff --git a/node_modules/is-unicode-supported/index.js b/node_modules/is-unicode-supported/index.js deleted file mode 100644 index 1db11b7..0000000 --- a/node_modules/is-unicode-supported/index.js +++ /dev/null @@ -1,12 +0,0 @@ -export default function isUnicodeSupported() { - if (process.platform !== 'win32') { - return process.env.TERM !== 'linux'; // Linux console (kernel) - } - - 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'; -} diff --git a/node_modules/is-unicode-supported/license b/node_modules/is-unicode-supported/license deleted file mode 100644 index fa7ceba..0000000 --- a/node_modules/is-unicode-supported/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/is-unicode-supported/package.json b/node_modules/is-unicode-supported/package.json deleted file mode 100644 index c679f3b..0000000 --- a/node_modules/is-unicode-supported/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "is-unicode-supported", - "version": "1.1.0", - "description": "Detect whether the terminal supports Unicode", - "license": "MIT", - "repository": "sindresorhus/is-unicode-supported", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "type": "module", - "exports": "./index.js", - "engines": { - "node": ">=12" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "terminal", - "unicode", - "detect", - "utf8", - "console", - "shell", - "support", - "supports", - "supported", - "check", - "detection" - ], - "devDependencies": { - "ava": "^3.15.0", - "tsd": "^0.14.0", - "xo": "^0.38.2" - } -} diff --git a/node_modules/is-unicode-supported/readme.md b/node_modules/is-unicode-supported/readme.md deleted file mode 100644 index d34064d..0000000 --- a/node_modules/is-unicode-supported/readme.md +++ /dev/null @@ -1,35 +0,0 @@ -# is-unicode-supported - -> Detect whether the terminal supports Unicode - -This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output. - -Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode. However, I have been using this logic in some popular packages for years without problems. - -## Install - -``` -$ npm install is-unicode-supported -``` - -## Usage - -```js -import isUnicodeSupported from 'is-unicode-supported'; - -isUnicodeSupported(); -//=> true -``` - -## API - -### isUnicodeSupported() - -Returns a `boolean` for whether the terminal supports Unicode. - -## Related - -- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive -- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color -- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks -- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels |