{ "_args": [ [ { "raw": "has-unicode@^2.0.0", "scope": null, "escapedName": "has-unicode", "name": "has-unicode", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/gauge" ] ], "_from": "has-unicode@>=2.0.0 <3.0.0", "_id": "has-unicode@2.0.1", "_inCache": true, "_location": "/has-unicode", "_nodeVersion": "4.4.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/has-unicode-2.0.1.tgz_1466719828333_0.48896647873334587" }, "_npmUser": { "name": "iarna", "email": "me@re-becca.org" }, "_npmVersion": "3.10.2", "_phantomChildren": {}, "_requested": { "raw": "has-unicode@^2.0.0", "scope": null, "escapedName": "has-unicode", "name": "has-unicode", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/gauge" ], "_resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "_shasum": "e0e6fe6a28cf51138855e086d1691e771de2a8b9", "_shrinkwrap": null, "_spec": "has-unicode@^2.0.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/gauge", "author": { "name": "Rebecca Turner", "email": "me@re-becca.org" }, "bugs": { "url": "https://github.com/iarna/has-unicode/issues" }, "dependencies": {}, "description": "Try to guess if your terminal supports unicode", "devDependencies": { "require-inject": "^1.3.0", "tap": "^2.3.1" }, "directories": {}, "dist": { "shasum": "e0e6fe6a28cf51138855e086d1691e771de2a8b9", "tarball": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz" }, "files": [ "index.js" ], "gitHead": "0a05df154e8d89a7fb9798da60b68c78c2df6646", "homepage": "https://github.com/iarna/has-unicode", "keywords": [ "unicode", "terminal" ], "license": "ISC", "main": "index.js", "maintainers": [ { "name": "iarna", "email": "me@re-becca.org" } ], "name": "has-unicode", "optionalDependencies": {}, "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", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/iarna/has-unicode.git" }, "scripts": { "test": "tap test/*.js" }, "version": "2.0.1" }