{"_id":"is-unicode-supported","_rev":"3753711","name":"is-unicode-supported","description":"Detect whether the terminal supports Unicode","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-03-18T06:43:04.000Z","created":"2021-03-17T10:11:13.836Z","2.1.0":"2024-09-09T06:26:03.073Z","2.0.0":"2023-10-29T14:02:54.928Z","1.3.0":"2022-09-08T03:50:49.956Z","1.2.0":"2022-03-23T06:54:12.696Z","1.1.0":"2021-07-03T06:31:35.341Z","1.0.0":"2021-04-18T05:09:42.952Z","0.1.0":"2021-03-17T10:11:13.836Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"versions":{"2.1.0":{"name":"is-unicode-supported","version":"2.1.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^6.1.3","tsd":"^0.31.2","xo":"^0.59.3"},"_id":"is-unicode-supported@2.1.0","gitHead":"e0373335038856c63034c8eef6ac43ee3827a601","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"09f0ab0de6d3744d48d265ebb98f65d11f2a9b3a","size":2048,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-2.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_2.1.0_1725863162943_0.488025161975274"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-09T06:26:03.073Z","publish_time":1725863163073,"_source_registry_name":"default","_cnpm_publish_time":1725863163073},"2.0.0":{"name":"is-unicode-supported","version":"2.0.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"506f27260df3636555714bf10ed40ab9e6a6c96e","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_id":"is-unicode-supported@2.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"fdf32df9ae98ff6ab2cedc155a5a6e895701c451","size":1988,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_2.0.0_1698588174725_0.032026229254733085"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-29T14:02:54.928Z","publish_time":1698588174928,"_source_registry_name":"default","_cnpm_publish_time":1698588174928},"1.3.0":{"name":"is-unicode-supported","version":"1.3.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^4.0.1","tsd":"^0.19.1","xo":"^0.47.0"},"types":"./index.d.ts","gitHead":"c80c691dde9e2fcfe3996810858c6672c8f35ad9","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_id":"is-unicode-supported@1.3.0","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"shasum":"d824984b616c292a2e198207d4a609983842f714","size":1973,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-1.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_1.3.0_1662609049768_0.513218337738387"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-08T03:52:45.070Z","publish_time":1662609049956,"_cnpm_publish_time":1662609049956},"1.2.0":{"name":"is-unicode-supported","version":"1.2.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^4.0.1","tsd":"^0.19.1","xo":"^0.47.0"},"types":"./index.d.ts","gitHead":"ee13cffb6ebfe5cd2d442d06ddfecd4db567e576","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_id":"is-unicode-supported@1.2.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.2","dist":{"shasum":"f4f54f34d8ebc84a46b93559a036763b6d3e1014","size":1937,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-1.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_1.2.0_1648018452544_0.5836375545625783"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-23T06:54:42.788Z","publish_time":1648018452696,"_cnpm_publish_time":1648018452696},"1.1.0":{"name":"is-unicode-supported","version":"1.1.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"f0c2c97ee97160b56d9143c24ac8ac18aef10b7d","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_id":"is-unicode-supported@1.1.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"9127b71f9fa82f52ca5c20e982e7bec0ee31ee1e","size":1899,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-1.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_1.1.0_1625293895229_0.06268368729171092"},"_hasShrinkwrap":false,"publish_time":1625293895341,"_cnpm_publish_time":1625293895341},"1.0.0":{"name":"is-unicode-supported","version":"1.0.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"a30a1f243cef54d25a078134f096acd02070eb2e","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_id":"is-unicode-supported@1.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"57284e13e7f5caefc7a45168285227e5c47d6413","size":1866,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-1.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_1.0.0_1618722582803_0.33430717601574766"},"_hasShrinkwrap":false,"publish_time":1618722582952,"_cnpm_publish_time":1618722582952},"0.1.0":{"name":"is-unicode-supported","version":"0.1.0","description":"Detect whether the terminal supports Unicode","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-unicode-supported.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"73d12afd9a8bb7efd747b18d8b8278d7e9364cfb","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","_id":"is-unicode-supported@0.1.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3f26c76a809593b52bfa2ecb5710ed2779b522a7","size":1882,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-unicode-supported/download/is-unicode-supported-0.1.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_0.1.0_1615975873665_0.8645116150518524"},"_hasShrinkwrap":false,"publish_time":1615975873836,"_cnpm_publish_time":1615975873836}},"readme":"# is-unicode-supported\n\n> Detect whether the terminal supports Unicode\n\nThis can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.\n\nNote 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.\n\n## Install\n\n```sh\nnpm install is-unicode-supported\n```\n\n## Usage\n\n```js\nimport isUnicodeSupported from 'is-unicode-supported';\n\nisUnicodeSupported();\n//=> true\n```\n\n## API\n\n### isUnicodeSupported()\n\nReturns a `boolean` for whether the terminal supports Unicode.\n\n## Related\n\n- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive\n- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color\n- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks\n- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-unicode-supported#readme","bugs":{"url":"https://github.com/sindresorhus/is-unicode-supported/issues"},"license":"MIT"}