{"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":{"integrity":"sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==","shasum":"f4f54f34d8ebc84a46b93559a036763b6d3e1014","tarball":"http://registry-npm.ywwl.com/is-unicode-supported/download/is-unicode-supported-1.2.0.tgz","fileCount":5,"unpackedSize":3766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOsQUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosJhAAo//WozRKd6+0l93Unk6s3ir8XDtOU71ypeCT0jlfrCq0GSrj\r\nan1DYVYJwwhi2XLyMU9QNGaheTt7ZqeC9YwQrb8BOrcR1+eH8GkMFqv7G1NV\r\nkky3wG2rt+UXUX25xHvE8j7PnRSepm/gMvio4/iT2cVLRVdUXbiHV0wJs9o1\r\nmNagncOpJmDSb1WhDnZWgWb9v/cUcNpv4cXJd4cHBLXiCgyq//R88Icu4ztk\r\ngNZhJW9CyorMNI8MrncG5SP/1hYADFQDJoBhRhJG6sJoBd4LWx6urf6vWAvy\r\npMP1+WGp93+JtNW/v7SU7Dc2vQfrfcexFYmU7diNNpEx5u+Js9Er+99AhbE2\r\nlob8tnGA1HTAQ0Q/0xuMIWZcjKCQhkk1IX9+A/HUzzJaUUAz0TBjcnbqXyeB\r\nvg+BO5E8XCuJXf4YX5za4CyrBXxA0MFzRO18Zu8seY+HbntUj+Dc9idnCzow\r\nF2ABKcQliu/4/Uq0637YBrUlh/cCmYbH1Zuq7KtdlR69ycWWaibbWogizofY\r\nMj7HJmDHrNtlxrvCEYwGpu9R9vO6kWTc/CU4nq5OTLDxuY69lElX75kZw/9r\r\nD4JX2PdZ1/kCYCIGKokj5Ym+N+Oixabca+zrNfsAToaF0ryYo6iQFzJKmtCv\r\nSa5fEGWGh0iZ4QPlFJbn4eCkDIuOeJe7QLY=\r\n=0Muc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW8lddN6OnrOmL9uHOQ1wpCheCKyDRo6HJzlIKXKqvMQIhALHKmpEkHDKvTIwA1VW68UwbbuEdEL9bP3ZWz8fPnOhr"}],"size":1937,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.2.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.2.0_1648018452544_0.5836375545625783"},"_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":1648018452696,"_cnpm_publish_time":1648018452696,"dist-tags":{"latest":"2.1.0"}}