{"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":{"integrity":"sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==","shasum":"d824984b616c292a2e198207d4a609983842f714","tarball":"http://registry-npm.ywwl.com/is-unicode-supported/download/is-unicode-supported-1.3.0.tgz","fileCount":5,"unpackedSize":3884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHE6YK5TITgTxpONPJuNE7EAoVp31q0Bgw5VU0LBxTaAiEA0i0jRbfCs3zsPZ8nYoGJ02KLRoD0FfBnYeZiIk8KV8A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGWaZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprKQ/9FZjARtrnJqWnZf1alx02Ep6r88QcPH88/KmO0CRSSls7wGI3\r\nh+/IClWQn5y0Vr8D7QuE32j3h2pgIBS4YxDQ0vxvImFQKtxiCK2+hMjAHyTb\r\nPioimDttS0iOIkI9S+D30bzzdjNoVkSXB98UzMtIs/RT+L+Bi34JhQjS1oBw\r\neXQXZyYClaTJHhCMGXZpaaZdEe6Afvw8Km0sj+T9gRluOGmMcB0qw0BIzEft\r\nwMDL/piw2c4lkmNpM9DpAsWsb4U/EyXFmtfFk9vUI75XLo7SIgB7xlLMsJhf\r\nqipI5pyH9HxJpB3ugRS4omjDZwWCwIfsihG+bJI3pzIWKgOO+oJaugRH3gYS\r\nIYwoGAh4XYcbYOx3+KjNJ/96AJTRIBPH4nQHOsaiu2FT4FkTQIAaxr17jH83\r\naWstvLQ1GvQQwOvakvbmWbw6C80LjJbidft1X/W45SEFS8zNZ1viuvQpM4l+\r\nT9QmeoUsn9Kej/XTARYSpVagVIBaycy3lf9tj/XhphLUmITak8Cyfyqg32gV\r\nioTUTbELG2KnHkJjO7MmkWpQDJlmG63dljPpF78C3lQEEsH3USmmbMLGt0UY\r\nIgfWgqoSC+CT3HZSDYfvE9I3dshj3vaiEhUGxgi/08WpjJJdwHc41zm7rPWE\r\nkOKCr96ylvtlAScusyg3bbxnvPp2s2uUPjQ=\r\n=55CZ\r\n-----END PGP SIGNATURE-----\r\n","size":1973,"noattachment":false,"key":"/is-unicode-supported/-/is-unicode-supported-1.3.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.3.0_1662609049768_0.513218337738387"},"_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":1662609049956,"_cnpm_publish_time":1662609049956,"dist-tags":{"latest":"2.1.0"}}