{"_id":"osx-release","_rev":"917","name":"osx-release","description":"Get the name and version of a macOS release from the Darwin version","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T09:55:55.000Z","created":"2014-06-08T15:42:08.103Z","2.0.0":"2016-06-19T20:22:23.268Z","1.1.0":"2015-06-08T23:08:07.289Z","1.0.0":"2014-08-14T09:32:30.966Z","0.1.0":"2014-06-08T15:42:08.103Z"},"users":{"program247365":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/osx-release.git"},"versions":{"2.0.0":{"name":"osx-release","version":"2.0.0","description":"Get the name and version of a macOS release from the Darwin version","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"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["os","osx","darwin","operating","system","platform","name","title","release","version"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"6d2971fbf13099e0308755d1582e896d0258cbde","bugs":{"url":"https://github.com/sindresorhus/osx-release/issues"},"homepage":"https://github.com/sindresorhus/osx-release#readme","_id":"osx-release@2.0.0","_shasum":"c98cbb98bc33d5b6993ba61c9225705090f3e5bf","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c98cbb98bc33d5b6993ba61c9225705090f3e5bf","size":1979,"noattachment":false,"key":"/osx-release/-/osx-release-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/osx-release/download/osx-release-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/osx-release-2.0.0.tgz_1466367740883_0.07742229965515435"},"deprecated":"Renamed to macos-release","directories":{},"publish_time":1466367743268,"_cnpm_publish_time":1466367743268,"_hasShrinkwrap":false},"1.1.0":{"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":"*"},"gitHead":"8edbc69a5dd9d2e062cf6e0e16559f6b7b882dbf","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","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f217911a28136949af1bf9308b241e2737d3cd6c","size":2355,"noattachment":false,"key":"/osx-release/-/osx-release-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/osx-release/download/osx-release-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1433804887289,"_cnpm_publish_time":1433804887289,"_hasShrinkwrap":false},"1.0.0":{"name":"osx-release","version":"1.0.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":"https://github.com/sindresorhus/osx-release"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"bin":{"osx-release":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","os","osx","darwin","operating","system","platform","name","title","release","version"],"dependencies":{"minimist":"^1.1.0"},"devDependencies":{"mocha":"*"},"gitHead":"d77f14e9368feb21f6a4c66ae5ff7c9188d6b8d8","bugs":{"url":"https://github.com/sindresorhus/osx-release/issues"},"homepage":"https://github.com/sindresorhus/osx-release","_id":"osx-release@1.0.0","_shasum":"02bee80f3b898aaa88922d2f86e178605974beac","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"02bee80f3b898aaa88922d2f86e178605974beac","size":1606,"noattachment":false,"key":"/osx-release/-/osx-release-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/osx-release/download/osx-release-1.0.0.tgz"},"directories":{},"publish_time":1408008750966,"_cnpm_publish_time":1408008750966,"_hasShrinkwrap":false},"0.1.0":{"name":"osx-release","version":"0.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://github.com/sindresorhus/osx-release"},"bin":{"osx-release":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","os","osx","darwin","operating","system","platform","name","title","release","version"],"dependencies":{"minimist":"^0.1.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/osx-release/issues"},"homepage":"https://github.com/sindresorhus/osx-release","_id":"osx-release@0.1.0","_shasum":"161809a27b3ee4e7f772aff80e1f86f144160bcd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"161809a27b3ee4e7f772aff80e1f86f144160bcd","size":1570,"noattachment":false,"key":"/osx-release/-/osx-release-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/osx-release/download/osx-release-0.1.0.tgz"},"directories":{},"publish_time":1402242128103,"_cnpm_publish_time":1402242128103,"_hasShrinkwrap":false}},"readme":"# osx-release [![Build Status](https://travis-ci.org/sindresorhus/osx-release.svg?branch=master)](https://travis-ci.org/sindresorhus/osx-release)\n\n> Get the name and version of a OS X release from the Darwin version.<br>\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 operating system 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## Related\n\n- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system. Example: `macOS Sierra`\n- [macos-version](https://github.com/sindresorhus/macos-version) - Get the macOS 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](https://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/osx-release#readme","bugs":{"url":"https://github.com/sindresorhus/osx-release/issues"},"license":"MIT"}