{"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":{"integrity":"sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==","shasum":"3f26c76a809593b52bfa2ecb5710ed2779b522a7","tarball":"http://registry-npm.ywwl.com/is-unicode-supported/download/is-unicode-supported-0.1.0.tgz","fileCount":5,"unpackedSize":3535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUdXCCRA9TVsSAnZWagAAjswP/2RSnMaY9hYr2sLk2wCt\nx0ONlloczHi6yj5G/cGyY5iwjrxdORpHkQ9EV3e9uVB1DR63ktGjNsmQnV0n\nT+ENyl3MrN2TnEjmZv7Jmd6pfPioWGue21D4qBG+f3CZR+37arSYEfx1Zukm\n0M3KINeSM6M6UnEhS4XRZzO5RFljBjX4dkx6vf7aImTJZYlhxbEKuOKNeNKy\nSu0gTs6uBOp4dkXkP8nV89l9bhJlcACCuZSTAZUtkXENyfY8Qkp9Boc5P5Qd\n3PNYA4rLa0XfUQ+E+EogdWQc1fyU3EHxfSrAuBqNRVxqv+knFslgUS30Cr9g\nHGvatFKbGdbHPTaq3erCQsKDCzVql0+RdBVfMZ6z60NOPGWQCdwHULQpFJrW\nJ/4RtLAJLzePsj+voRz19f5DXqP0UbxH8Q66WuQxyUb5sTFXHh7/crQQLACY\nxS7AWY5ib9bE/InEQ7V/rPtpViNrFHc2WNpTMVECvSZB/l5ta1SbC8Waobt9\n0GNzeGpphvE+u6zsUIEycVBlGWblulr+YTSMy9JTQdzt+VAWnSnQTJFXtezp\ny6UdleCB+lizQAp/Chc8MbWRe3gTpI3l5rFrFlfdo9BvZaIABxMZ6Rf5T+NH\nVK8+66oR2hO745DvUZsfz0lN3Z0AL6a+FkBos2qxgBj8xzPNNbdrqlJEri9t\ngh6T\r\n=0xWP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFuRlamkCwFU1ELXvLnnqP7A66bhdSOwWlMNnw7d2O0XAiAnVnw4WwAD9MzT979hLaIkvtuS4N/wfs5pBd5BI9bTZg=="}],"size":1882,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-unicode-supported_0.1.0_1615975873665_0.8645116150518524"},"_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":1615975873836,"_cnpm_publish_time":1615975873836,"dist-tags":{"latest":"2.1.0"}}