版博士V2.0程序
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
CPL 9104556504 v2.0.7 报表数据修改 1 рік тому
..
index.d.ts v2.0.7 报表数据修改 1 рік тому
index.js v2.0.7 报表数据修改 1 рік тому
license v2.0.7 报表数据修改 1 рік тому
package.json v2.0.7 报表数据修改 1 рік тому
readme.md v2.0.7 报表数据修改 1 рік тому

readme.md

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

import isUnicodeSupported from 'is-unicode-supported';

isUnicodeSupported();
//=> true

API

isUnicodeSupported()

Returns a boolean for whether the terminal supports Unicode.