{"name":"macos-release","version":"3.0.1","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/macos-release.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["macos","os","darwin","operating","system","platform","name","title","release","version"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"7e8008173ef2ff45bd096d406b92904a89986621","bugs":{"url":"https://github.com/sindresorhus/macos-release/issues"},"homepage":"https://github.com/sindresorhus/macos-release#readme","_id":"macos-release@3.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-3l6OrhdDg2H2SigtuN3jBh+5dRJRWxNKuJTPBbGeNJTsmt/pj9PO25wYaNb05NuNmAsl435j4rDP6rgNXz7s7g==","shasum":"7d2a1329a616297db4a57f3d3ba8fa07a7caadd6","tarball":"http://registry-npm.ywwl.com/macos-release/download/macos-release-3.0.1.tgz","fileCount":5,"unpackedSize":5461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL4EQCRA9TVsSAnZWagAAF3MP/33TO05arAInMxHF6fEr\nUcGOU6BhWSVkQpuMH4n0GbTW/jrKsbY236y2yT5oNKwQIeLnPlbLNJECZsqz\nj76oyzEU0ty5q77oHa0axhkMI/rEtqj9ZGHFPkv4evUYCyFlUqO5HvYD9eBM\nCqfRb5JNliaZQyk6XjTY967QdanwdPSGFR9eEyS+rxXTuUXAIYLac/dzfV9P\n2+lDcw54iVtAgyZN1xbIhCAFOJPqne6bEU/HF+Jx8T74sIM6PRbv94GpzEgZ\n8Rm6eb1bzljHORNMVpDMQ4/LfJrOTwfQSdp35/GMPXjOcW76DiRGeXKzVbg+\nJ79P5WaJAwQOj5rDrCNL4ECqHLeuUibCi0m2kTvTlOX8o7QMDckViZGqmYR2\nuih01F3n3sEy65cadcYQd492w/VZbT6U2jXoEgV2ME4dC4zWakU+q66lyf9V\niTi0mqTt3AsbvM83Aql+lVGovc5bUSQzzxhaLbuwWy+SbdcIIb5AIYsE05h2\n/lfS4P5oZC+gntHVbWIjXrCO/Wrp86S0g3+q7CzzIPEnLqPibq7MDwrg4w1t\nmizIwwJRg2a1oC02+wBPPnZgCcxUyz47vw5AJjNz+ViVilUElDe7QX4oxv/p\nVqSUA1hOb+mdPV+1WlOc2OfnLIevXErNHuso5SPEI0h845D5KqLuDIrin50X\n81cU\r\n=ZWaw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuyn0Jdr6ZZ+DaCr+cSd2i/dQHxzQy6pJrR1mVUoZEsQIgU71ShPuM6FEb239yDSW1y2Kit7tEC2h+ebUyrAlIXbY="}],"size":2379,"noattachment":false,"key":"/macos-release/-/macos-release-3.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macos-release_3.0.1_1630503184323_0.5777788729179703"},"_hasShrinkwrap":false,"readme":"# macos-release\n\n> Get the name and version of a macOS release from the Darwin version\\\n> Example: `13.2.0` → `{name: 'Mavericks', version: '10.9'}`\n\n## Install\n\n```\n$ npm install macos-release\n```\n\n## Usage\n\n```js\nimport os from 'node:os';\nimport macosRelease from 'macos-release';\n\n// On a macOS Sierra system\n\nmacosRelease();\n//=> {name: 'Sierra', version: '10.12'}\n\nos.release();\n//=> 13.2.0\n// This is the Darwin kernel version\n\nmacosRelease(os.release());\n//=> {name: 'Sierra', version: '10.12'}\n\nmacosRelease('14.0.0');\n//=> {name: 'Yosemite', version: '10.10'}\n\nmacosRelease('20.0.0');\n//=> {name: 'Big Sur', version: '11'}\n```\n\n## API\n\n### macosRelease(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](https://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release).\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/win-release) - Get the name of a Windows version from the release number: `5.1.2600` → `XP`\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-macos-release?utm_source=npm-macos-release&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1630503184426,"_cnpm_publish_time":1630503184426,"dist-tags":{"latest":"3.5.1","version-2":"2.5.1"}}