版博士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.