{ "_args": [ [ { "raw": "os-locale@^2.0.0", "scope": null, "escapedName": "os-locale", "name": "os-locale", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/yargs" ] ], "_from": "os-locale@>=2.0.0 <3.0.0", "_id": "os-locale@2.1.0", "_inCache": true, "_location": "/os-locale", "_nodeVersion": "8.0.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/os-locale-2.1.0.tgz_1500667149329_0.6210105223581195" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "5.0.0", "_phantomChildren": {}, "_requested": { "raw": "os-locale@^2.0.0", "scope": null, "escapedName": "os-locale", "name": "os-locale", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/jest-runtime/yargs", "/jest/yargs", "/metro/yargs", "/react-native/yargs", "/yargs" ], "_resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", "_shasum": "42bc2900a6b5b8bd17376c8e882b65afccf24bf2", "_shrinkwrap": null, "_spec": "os-locale@^2.0.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/yargs", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/os-locale/issues" }, "dependencies": { "execa": "^0.7.0", "lcid": "^1.0.0", "mem": "^1.1.0" }, "description": "Get the system locale", "devDependencies": { "ava": "*", "import-fresh": "^2.0.0", "xo": "*" }, "directories": {}, "dist": { "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", "shasum": "42bc2900a6b5b8bd17376c8e882b65afccf24bf2", "tarball": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "7322d9e8db79bbf153906e6b2870832893f5e1e5", "homepage": "https://github.com/sindresorhus/os-locale#readme", "keywords": [ "locale", "lang", "language", "system", "os", "string", "str", "user", "country", "id", "identifier", "region" ], "license": "MIT", "maintainers": [ { "name": "bcoe", "email": "ben@npmjs.com" }, { "name": "nexdrew", "email": "andrew@npmjs.com" }, { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "os-locale", "optionalDependencies": {}, "readme": "# os-locale [![Build Status](https://travis-ci.org/sindresorhus/os-locale.svg?branch=master)](https://travis-ci.org/sindresorhus/os-locale)\n\n> Get the system [locale](https://en.wikipedia.org/wiki/Locale_(computer_software))\n\nUseful for localizing your module or app.\n\nPOSIX systems: The returned locale refers to the [`LC_MESSAGE`](http://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html#Locale-Categories) category, suitable for selecting the language used in the user interface for message translation.\n\n\n## Install\n\n```\n$ npm install --save os-locale\n```\n\n\n## Usage\n\n```js\nconst osLocale = require('os-locale');\n\nosLocale().then(locale => {\n\tconsole.log(locale);\n\t//=> 'en_US'\n});\n```\n\n\n## API\n\n### osLocale([options])\n\nReturns a `Promise` for the locale.\n\n### osLocale.sync([options])\n\nReturns the locale.\n\n#### options\n\nType: `Object`\n\n##### spawn\n\nType: `boolean`
\nDefault: `true`\n\nSet to `false` to avoid spawning subprocesses and instead only resolve the locale from environment variables.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/os-locale.git" }, "scripts": { "test": "xo && ava" }, "version": "2.1.0" }