{ "_args": [ [ { "raw": "os-name@^2.0.1", "scope": null, "escapedName": "os-name", "name": "os-name", "rawSpec": "^2.0.1", "spec": ">=2.0.1 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/envinfo" ] ], "_from": "os-name@>=2.0.1 <3.0.0", "_id": "os-name@2.0.1", "_inCache": true, "_location": "/os-name", "_nodeVersion": "4.4.2", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/os-name-2.0.1.tgz_1466382684023_0.860145166516304" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.15.0", "_phantomChildren": {}, "_requested": { "raw": "os-name@^2.0.1", "scope": null, "escapedName": "os-name", "name": "os-name", "rawSpec": "^2.0.1", "spec": ">=2.0.1 <3.0.0", "type": "range" }, "_requiredBy": [ "/envinfo" ], "_resolved": "https://registry.npmjs.org/os-name/-/os-name-2.0.1.tgz", "_shasum": "b9a386361c17ae3a21736ef0599405c9a8c5dc5e", "_shrinkwrap": null, "_spec": "os-name@^2.0.1", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/envinfo", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/os-name/issues" }, "dependencies": { "macos-release": "^1.0.0", "win-release": "^1.0.0" }, "description": "Get the name of the current operating system. Example: macOS Sierra", "devDependencies": { "ava": "*", "xo": "*" }, "directories": {}, "dist": { "shasum": "b9a386361c17ae3a21736ef0599405c9a8c5dc5e", "tarball": "https://registry.npmjs.org/os-name/-/os-name-2.0.1.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "c4903a345f3921e9a500dd3a2704d2f1ca43ecd1", "homepage": "https://github.com/sindresorhus/os-name#readme", "keywords": [ "os", "operating", "system", "platform", "name", "title", "release", "version", "macos", "osx", "windows", "linux" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "os-name", "optionalDependencies": {}, "readme": "# os-name [![Build Status](https://travis-ci.org/sindresorhus/os-name.svg?branch=master)](https://travis-ci.org/sindresorhus/os-name)\n\n> Get the name of the current operating system
\n> Example: `macOS Sierra`\n\nUseful for analytics and debugging.\n\n\n## Install\n\n```\n$ npm install --save os-name\n```\n\n\n## Usage\n\n```js\nconst os = require('os');\nconst osName = require('os-name');\n\n// on a macOS Sierra system\n\nosName();\n//=> 'macOS Sierra'\n\nosName(os.platform(), os.release());\n//=> 'macOS Sierra'\n\nosName('darwin', '14.0.0');\n//=> 'OS X Yosemite'\n\nosName('linux', '3.13.0-24-generic');\n//=> 'Linux 3.13'\n\nosName('win32', '6.3.9600');\n//=> 'Windows 8.1'\n```\n\n\n## API\n\n### osName([platform, release])\n\nBy default the name of the current operating system is returned.\n\nYou can optionally supply a custom [`os.platform()`](http://nodejs.org/api/os.html#os_os_platform) and [`os.release()`](http://nodejs.org/api/os.html#os_os_release).\n\nCheck out [getos](https://github.com/wblankenship/getos) if you need the Linux distribution name.\n\n\n## Contributing\n\nProduction systems depend on this package for logging / tracking. Please be careful when introducing new output, and adhere to existing output format (whitespace, capitalization, etc.).\n\n\n## Related\n\n- [os-name-cli](https://github.com/sindresorhus/os-name-cli) - CLI for this module\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-name.git" }, "scripts": { "test": "xo && ava" }, "version": "2.0.1" }