{"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":{"integrity":"sha512-TfeaLetCvWAJ/QjG8zBbr0H2LXE0m/Oatp25w0kgU2T/N+Xd2VMV3ENm/h3H4/ajBG9euaK2gsqipL4aCz8lTQ==","shasum":"57284e13e7f5caefc7a45168285227e5c47d6413","tarball":"http://registry-npm.ywwl.com/is-unicode-supported/download/is-unicode-supported-1.0.0.tgz","fileCount":5,"unpackedSize":3553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJge78XCRA9TVsSAnZWagAAU64P/3vKVaR1xbFi2d+hzYlQ\nUBg1i1JiNuW007xSOiC5CtSnY+RfEpOFX6hu9W1Dx79VUekUeHETpiKj0jrk\ncZDsGszHQ2VMHD3R5CoOV6+0/NWecrtskiywfb6GXZqvukhyynT4d+f0n3BH\nC3qVVi6T4XfNELgC06EWHsuTfaQrJyEvyfsgy0CLwYFWF9r+T3klGzoNrSoW\niF9+LySjfxYhp2z0tD7CHhVTUQolD9jaaoApV06oo8lxizGmvXA00t3Bv5e7\nBnMbAmxpSrrnapGjxXmdHUfV3F/n+KjW2srZvMfoAnjwG/mgRqDC4CwetHeZ\ncleI0whOVqonEj1Uv6tkVzc8JeDxFXRRz+TtDmREBKZzvZQ2Y8BeutkoJfM6\nYRCm5WwnA9BEQ1i6G1SayNPi9Lfe8F4an9dJvKuD249ckfg+ZR70n7qD81pd\nR3DsgWdq+0mAPbSxXMEnfw5Fem417CtUesNsJwgYFVc+FqZ9YjN3jfFek/fO\newEq2mcl+Fi6JJTnC9e0OnqL+hxIw6w3HTfXveBpX23zUbAkpcgnJIRWnGSB\nMCIVhgMVLZ7ps+6yMOhjQZCjzIZvGo7skmbtBWTyiQzIeuwJK1TQcYxBRoyH\noCpif+A9QOIn4qDotqK1DKHzou9hDPTW8cyd9aT1z+/TRwYyi2jIeeEPsSel\n1MA9\r\n=Zyha\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCw1puNbnsfjyMeCaghTm4Ada5AGHAvrg1m/WynB9TltgIgeuGZ6RomRBdP993OTVRbJGuy0ocVn4R/cUbTwgpHQss="}],"size":1866,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_1.0.0_1618722582803_0.33430717601574766"},"_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":1618722582952,"_cnpm_publish_time":1618722582952,"dist-tags":{"latest":"2.1.0"}}