{"_id":"@1n/is-unicode-supported","_rev":"1-7ab66f9d20271920f32e78f00a4a205d","name":"@1n/is-unicode-supported","description":"Detect whether the terminal supports unicode","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@1n/is-unicode-supported","version":"0.0.1","keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"license":"MIT","_id":"@1n/is-unicode-supported@0.0.1","maintainers":[{"name":"scriptpower","email":"scriptpower@qq.com"},{"name":"leiyl","email":"leiyl@outlook.com"}],"dist":{"shasum":"93924f7111a84f25e220556619b63db2978d6cd2","tarball":"https://registry.npmjs.org/@1n/is-unicode-supported/-/is-unicode-supported-0.0.1.tgz","fileCount":5,"integrity":"sha512-U3t23cNJyKpDdSwwf5eDuz65LkBmTZ82Nk9ihX89Q+eUTRuc/SEG6TAWtBH4VTu4+Vfi6VvksapN30Cg3m7f4A==","signatures":[{"sig":"MEYCIQCnqy7K8hTjR9PWMdC1KxyzD7Z40Lez2vfyM4hdNlekXQIhAIUdKnMmU+tWzQekj2BVC9EJo/ril9CXStgBL2etq9MS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2302},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","exports":{".":{"import":{"types":"./index.d.ts","default":"./index.js"},"require":{"types":"./index.d.ts","default":"./index.cjs"}}},"gitHead":"1011d39748723a91580f186351f08d10d63bf19b","_npmUser":{"name":"scriptpower","email":"scriptpower@qq.com"},"_npmVersion":"10.2.4","description":"Detect whether the terminal supports unicode","directories":{},"_nodeVersion":"20.9.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/is-unicode-supported_0.0.1_1700985669036_0.00728248965808076","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-11-26T08:01:08.941Z","modified":"2024-06-14T07:31:10.365Z","0.0.1":"2023-11-26T08:01:09.256Z"},"maintainers":[{"email":"scriptpower@qq.com","name":"scriptpower"}],"keywords":["terminal","unicode","detect","utf8","console","shell","support","supports","supported","check","detection"],"license":"MIT","readme":"# @1n/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 @1n/is-unicode-supported\n```\n\n## Usage\n\n```js\nimport isUnicodeSupported from '@1n/is-unicode-supported';\n\nisUnicodeSupported(); //=> true\n\n```\n\n## API\n\n### isUnicodeSupported()\n\nReturns a `boolean` for whether the terminal supports Unicode.\n","readmeFilename":"README.md"}