{"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":{"integrity":"sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==","shasum":"9127b71f9fa82f52ca5c20e982e7bec0ee31ee1e","tarball":"http://registry-npm.ywwl.com/is-unicode-supported/download/is-unicode-supported-1.1.0.tgz","fileCount":5,"unpackedSize":3670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4ARHCRA9TVsSAnZWagAA/oEP/2l3IO2YOTZqt5XYtmHt\n+kU4cggsZgxmbZSkTjBGZ6lJqrv9t4XjD2j/BMh3Lm/1dsrQ9d8G1EWic8XK\nrL0uPDBY7Q82DSVOzLWR9kOukMH2ixSijSUhrW/oJkOaWEUUUdZgVPgKUVni\nZtfdGV15ZRVjH/2cBXqxt2EvDW7hI58lQeckpfOA6t4/YY5bFracGGcfZ3IV\n0Frp5qwsHAj3qsqo4+TLIexVExyqz+4egP5AxADPut9MOfV9Vj8RWPfIbUX3\n+wRqdG4yiQTVj+jZYNVLoQ8TVN+TDxKvlLA1BscoMR6WpY0oWf19JxLfJzQ3\nEHgAHpFDFqcw8x3OlEbSGv5c906a74wXR6FXUweUSTqmu0ZSZut9wUSVa1If\nsKA2BdWeMq58JDXobP2uVOVHhHQrgMEIlV1m0QetkqXaWr74YB7plQIXMpud\nxQCrF/NDYpAp2Z3TOchfRb264oVwdPjepdRsizv1d0EO8Wdros6rFDGHtrMT\nvCyOpG/U7OOH8W3djil+QSlMf9/OfWONoNI+HIS+ZkwrX/+CmW6g9n06TbaZ\nZ5MT41xhfIW+HYoX4WwvPp2gBdmwfVjK5g4sb0YgHn41RAMqb1csFgiFA1JF\noDGuv7D6NlT5Ltj7Ggwf/5RVMt7UV2Md7/A93Yj/h+W1y64/K4VXxUj077v/\n84K4\r\n=W1/o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyMerr9TITLb2qtBuaWJQ8VlHLAkN7yeKH37nafJwW3AIhAPDf9phqj2WH0Wy8FXprWz8hSUV6L+QtRTSX6VQlyXXw"}],"size":1899,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_1.1.0_1625293895229_0.06268368729171092"},"_hasShrinkwrap":false,"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","publish_time":1625293895341,"_cnpm_publish_time":1625293895341,"dist-tags":{"latest":"2.1.0"}}