2.1.0 • Published 8 months ago

is-unicode-supported v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

Related

figureslog-symbolsora@legionerri/better.logeasy-select-rndeneme323112@ntt_app/react-native-custom-notification@sonammalhotra/lotide@smishra17/lotide@cheapthrills/lotidereact-native-covid-sdkgql_din_modiclo@jttechnic/interpreterauto-extract@iobroker-community-adapters/iobroker.device-watcherreact-native-printer-brothers@newhorizon-tech/dd-npm-package-templatereact-native-shekhar-bridge-testcogoportutilsdyx-reactlevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29levinodelib@nicholasjj/lotidetalent-to-vite-cli@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-is-u@prodam/prodam-typescclibyarntestshamsi-date-nowluminos-ui-core@everything-registry/sub-chunk-1935iqra-calculatorjawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkg@rabailriaz/hisaab-web-portalreact-native-jawwy_samplecode-msi-simple_calculator123zs89cli-number-guessingkny63-atm-machinekshahmeer10_atmatm_process@uf3sindh/simple_cli_calculatorhmmmmd12-cli-number-guessinghmd12-cli-number-guessingja--simple--calculatorcode-with-zafar-number-gusseing-gamecode-with-zafar-student-managment-systemgriffin-ui-librarynadia-simple-calculatoratm-code-from-inquirer-code-with-hasnainatm-code-with-hasnainatm-code-with-hasnain-using-inquirercode-with-abbasi-riffattalha12-todo-listtdl1-to-do-listtailwind-vector-effectsyz432cli-number-guessingtaha-atm-machinetest-library-123test-haptik-libtest-npm-jjmessiwinx-form-winxword-counter-h-a-aword-counter-husainaword-counter-in-typescriptword-my-counterword_counter_hk123word_counter-by-safawordddd-counterwaleed_atmwajhi-to-do-listwajhi-word-counterweather-api-cli-basedwebdatabasetest1webdatabasetest10week_wningwqr91-simple-calculatorwp-theme-cliwifi_configuration_packageteapackage-tatespoorman297sumi--aya..cltsumaira-naveed-cli-gueeesing-number-gamesportscale-wifi-connectsparkjs-clitestweblibapitest-zeo-collect
2.1.0

8 months ago

2.0.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago