{"name":"has-unicode","version":"2.0.0","description":"Try to guess if your terminal supports unicode","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git+https://github.com/iarna/has-unicode.git"},"keywords":["unicode","terminal"],"author":{"name":"Rebecca Turner","email":"me@re-becca.org"},"license":"ISC","bugs":{"url":"https://github.com/iarna/has-unicode/issues"},"homepage":"https://github.com/iarna/has-unicode","devDependencies":{"require-inject":"^1.3.0","tap":"^2.3.1"},"gitHead":"fdd5de141a5564bdb5bc991d951209da40f6a598","_id":"has-unicode@2.0.0","_shasum":"a3cd96c307ba41d559c5a2ee408c12a11c4c2ec3","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"iarna","email":"me@re-becca.org"},"dist":{"shasum":"a3cd96c307ba41d559c5a2ee408c12a11c4c2ec3","tarball":"http://registry-npm.ywwl.com/has-unicode/download/has-unicode-2.0.0.tgz","integrity":"sha512-O9wqHeXNkfa6ktLXg+WYg6oRqdpl5AH8FQdZanjILpQEQ8lqiN0fD6AoGqtMGn2xhRJ4UBKMP2Z17PZxQKoo5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6MV3gVBzu5ovcaXw2Ln8q0DvT0+Q0AF8VIwZk1fq4QAiEAsaSOR4C4Z4ZefKNTpmqBIFX5S4H5Lao+lVQDDl96kKE="}],"size":2641,"noattachment":false,"key":"/has-unicode/-/has-unicode-2.0.0.tgz"},"maintainers":[{"name":"iarna","email":"me@re-becca.org"}],"directories":{},"readme":"has-unicode\n===========\n\nTry to guess if your terminal supports unicode\n\n```javascript\nvar hasUnicode = require(\"has-unicode\")\n\nif (hasUnicode()) {\n  // the terminal probably has unicode support\n}\n```\n```javascript\nvar hasUnicode = require(\"has-unicode\").tryHarder\nhasUnicode(function(unicodeSupported) {\n  if (unicodeSupported) {\n    // the terminal probably has unicode support\n  }\n})\n```\n\n## Detecting Unicode\n\nWhat we actually detect is UTF-8 support, as that's what Node itself supports.\nIf you have a UTF-16 locale then you won't be detected as unicode capable.\n\n### Windows\n\nSince at least Windows 7, `cmd` and `powershell` have been unicode capable,\nbut unfortunately even then it's not guaranteed. In many localizations it\nstill uses legacy code pages and there's no facility short of running\nprograms or linking C++ that will let us detect this. As such, we\nreport any Windows installation as NOT unicode capable, and recommend\nthat you encourage your users to override this via config.\n\n### Unix Like Operating Systems\n\nWe look at the environment variables `LC_ALL`, `LC_CTYPE`, and `LANG` in\nthat order.  For `LC_ALL` and `LANG`, it looks for `.UTF-8` in the value. \nFor `LC_CTYPE` it looks to see if the value is `UTF-8`.  This is sufficient\nfor most POSIX systems.  While locale data can be put in `/etc/locale.conf`\nas well, AFAIK it's always copied into the environment.\n\n","publish_time":1448499559737,"_cnpm_publish_time":1448499559737,"dist-tags":{"latest":"2.0.1"}}