2.0.0 • Published 6 months ago

is-unicode-supported v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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.log@tinacms/clieasy-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-guessing@idas1/ui-component-lib@hieuquang2212/form@haijoon2/lotidee@harryhamlin/readme-generator@hassanabdi/lotide@harinderlabana/lotide@hamzasheikh8669/word_counter@hiroyone/number-formatter@gadgetinc/ggt@jacquikoroll/lotide@jaw-aid/npmpractice@jarrettk/lotide@mavfeuille/lotide@junedz/calculator@junvary/quasar-ui-qcascader@jsenv/log@juanaraneta/dept-central-lib-client@meteora277/lotide@mhassan47/lotide@nexo-stack/cli@niubrandon/lotide@namraa/lotide@namtoonix/editorjs-custom-multiple-selected@mudassirali1/cli-number-guessing@mzparulina26/lotide@nickkaramoff/log-symbols@nirin100/quadratic-protocol@nirin100/quadratic-sdk@nighly/sort-object-array-by-property@nitestack/project-manager@kazesolo/console-symbols@kcruz95/lotide@laabi123/currency-converter@legend02/lotide@jojoxd/barrels@jojoxd/barrels-nx@kalkanisys/vue-select@lawwwlin/lotide@lianc/lotide@lehuyaa/my-assets@garycui222/lotide
2.0.0

6 months ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago