{"name":"macos-release","version":"2.5.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"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["macos","os","darwin","operating","system","platform","name","title","release","version"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.1","xo":"^0.24.0"},"types":"./index.d.ts","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\nconst os = require('os');\nconst macosRelease = require('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","readmeFilename":"readme.md","gitHead":"8161ec864449ce6701850fe89593871500fd67e8","bugs":{"url":"https://github.com/sindresorhus/macos-release/issues"},"homepage":"https://github.com/sindresorhus/macos-release#readme","_id":"macos-release@2.5.1","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-DXqXhEM7gW59OjZO8NIjBCz9AQ1BEMrfiOAl4AYByHCtVHRF4KoGNO8mqQeM8lRCtQe/UnJ4imO/d2HdkKsd+A==","shasum":"bccac4a8f7b93163a8d163b8ebf385b3c5f55bf9","tarball":"http://registry-npm.ywwl.com/macos-release/download/macos-release-2.5.1.tgz","fileCount":5,"unpackedSize":5748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzftbHKLlWNv9Y6WW6zXbpNmUEpvKZdlVhfCS53XqOvQIgItID869NVJKFqFp3qAyFEuuJHb8Ewpdk/Mz3i1P/lvk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj950QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWbw/+PUElHqsiQ2VDq2Sin1wuw1BvTw7Rv4ZKizSWVqc87N2t6zLz\r\n9+zN6zBUOXQNHHSgEMmK6z8rgABsirM3xTaB1X2tyOEcEwYTdi7kdatq9zfs\r\n3SagthGhK4WsvJvysXxq5yjcQQSwsefvA47e9ccKZlE0ZuQdyRAeRGMsgEVw\r\nqdV0OUiiP/RlOQiXsU7ObhIbQxd//2k+OEdpRCIUn3ZrLHaNr8++8a6rEa1Y\r\nYeRLSDeoAIxLAGFKP2m84IDEzhNGt+MMV903C+cXMC/rKTwtxA04bZE5mAQz\r\ni3oaHXUO5pcK/G2/UoMh7bPk+cbG4HraPFZyJ0T1M3toNpMsji2frvV6tpHI\r\n0LDV3LUJ4/RKXBkDCo9r3AjSSNtEqqAEDl8Xi97VHBD0G6QWBNBqL+vPA/xZ\r\nZRN+2UJ/0aC6kHTFF4zF/XNTq44OeHqoytiak++QoBQONJzBrkQc7pr0VEQy\r\nijNZv7iZ0xU10W4iVEsb0yh4I4dFaLIdgJLWx72uVSWJws0CdsfYOSI9WD72\r\n9vwxbvB4dsEAmGS/VBOylRf6daiA8VHs5NwZHU8k5+U+U1U5z+xes75pNkxJ\r\nI747OABPZ9Q1qiV4ML3/x/0rU5u4BLUm6TYHVePiHz/ScZFSgKJhp9vJZqfy\r\nnIPl/Zruui+zHszqGwTpLsRBJKxvUS72VC8=\r\n=Zz88\r\n-----END PGP SIGNATURE-----\r\n","size":2527,"noattachment":false,"key":"/macos-release/-/macos-release-2.5.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_2.5.1_1677171984272_0.1834779047421189"},"_hasShrinkwrap":false,"publish_time":1677171984463,"_cnpm_publish_time":1677171984463,"dist-tags":{"latest":"3.5.1","version-2":"2.5.1"}}