版博士V2.0程序
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
CPL 9104556504 v2.0.7 报表数据修改 1 år sedan
..
index.d.ts v2.0.7 报表数据修改 1 år sedan
index.js v2.0.7 报表数据修改 1 år sedan
license v2.0.7 报表数据修改 1 år sedan
package.json v2.0.7 报表数据修改 1 år sedan
readme.md v2.0.7 报表数据修改 1 år sedan

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.