{ "name": "os-name", "version": "1.0.3", "description": "Get the name of the current operating system. Example: OS X Mavericks", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/sindresorhus/os-name" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bin": { "os-name": "cli.js" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js", "cli.js" ], "keywords": [ "cli", "bin", "os", "operating", "system", "platform", "name", "title", "release", "version", "osx", "windows", "linux" ], "dependencies": { "osx-release": "^1.0.0", "win-release": "^1.0.0" }, "devDependencies": { "mocha": "*" }, "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. Example: `OS X Mavericks`\n\nUseful for analytics and debugging.\n\n\n## Install\n\n```sh\n$ npm install --save os-name\n```\n\n\n## Usage\n\n```js\nvar os = require('os');\nvar osName = require('os-name');\n\n// on an OS X Mavericks system\n\nosName();\n//=> OS X Mavericks\n\nosName(os.platform(), os.release());\n//=> OS X Mavericks\n\nosName(os.platform());\n//=> OS X\n\nosName('linux', '3.13.0-24-generic');\n//=> Linux 3.13\n\nosName('win32', '6.3.9600');\n//=> Windows 8.1\n\nosName('win32');\n// Windows\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## CLI\n\n```sh\n$ npm install --global os-name\n```\n\n```sh\n$ os-name --help\n\n Example\n os-name\n OS X Mavericks\n```\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## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/os-name/issues" }, "homepage": "https://github.com/sindresorhus/os-name", "_id": "os-name@1.0.3", "_shasum": "1b379f64835af7c5a7f498b357cb95215c159edf", "_from": "os-name@^1.0.0", "_resolved": "https://registry.npmjs.org/os-name/-/os-name-1.0.3.tgz" }