{ "name": "osx-release", "version": "1.1.0", "description": "Get the name and version of a OS X release from the Darwin version. Example: 13.2.0 → {name: 'Mavericks', version: '10.9'}", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/osx-release.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bin": { "osx-release": "cli.js" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js", "cli.js" ], "keywords": [ "cli-app", "cli", "bin", "os", "osx", "darwin", "operating", "system", "platform", "name", "title", "release", "version" ], "dependencies": { "minimist": "^1.1.0" }, "devDependencies": { "mocha": "*" }, "readme": "# osx-release [](https://travis-ci.org/sindresorhus/osx-release)\n\n> Get the name and version of a OS X release from the Darwin version. \n> Example: `13.2.0` → `{name: 'Mavericks', version: '10.9'}`\n\n\n## Install\n\n```sh\n$ npm install --save osx-release\n```\n\n\n## Usage\n\n```js\nvar os = require('os');\nvar osxRelease = require('osx-release');\n\n// on an OS X Mavericks system\n\nosxRelease();\n//=> {name: 'Mavericks', version: '10.9'}\n\nos.release();\n//=> 13.2.0\n// this is the Darwin kernel version\n\nosxRelease(os.release());\n//=> {name: 'Mavericks', version: '10.9'}\n\nosxRelease('14.0.0');\n//=> {name: 'Yosemite', version: '10.10'}\n```\n\n\n## API\n\n### osxRelease([release])\n\n#### release\n\nType: `string`\n\nBy default the current OS is used, but you can supply a custom [Darwin kernel version](http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](http://nodejs.org/api/os.html#os_os_release).\n\n\n## CLI\n\n```sh\n$ npm install --global osx-release\n```\n\n```sh\n$ osx-release --help\n\n Usage\n osx-release [release]\n\n Example\n osx-release\n Mavericks 10.9\n\n osx-release 14.0.0\n Yosemite 10.10\n```\n\n\n## Related\n\n- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system. Example: `OS X Mavericks`\n- [osx-version](https://github.com/sindresorhus/osx-version) - Get the OS X version of the current system. Example: `10.9.3`\n- [win-release](https://github.com/sindresorhus/osx-version) - Get the name of a Windows version from the release number: `5.1.2600` → `XP`\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/osx-release/issues" }, "homepage": "https://github.com/sindresorhus/osx-release#readme", "_id": "osx-release@1.1.0", "_shasum": "f217911a28136949af1bf9308b241e2737d3cd6c", "_resolved": "https://registry.npmjs.org/osx-release/-/osx-release-1.1.0.tgz", "_from": "osx-release@>=1.0.0 <2.0.0" }