{"name":"macos-release","version":"2.4.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/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"},"gitHead":"70f782f6a2c80f13c98245400b43d668edc91736","bugs":{"url":"https://github.com/sindresorhus/macos-release/issues"},"homepage":"https://github.com/sindresorhus/macos-release#readme","_id":"macos-release@2.4.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-ko6deozZYiAkqa/0gmcsz+p4jSy3gY7/ZsCEokPaYd8k+6/aXGkiTgr61+Owup7Sf+xjqW8u2ElhoM9SEcEfuA==","shasum":"837b39fc01785c3584f103c5599e0f0c8068b49e","tarball":"http://registry-npm.ywwl.com/macos-release/download/macos-release-2.4.0.tgz","fileCount":5,"unpackedSize":5747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+5qcCRA9TVsSAnZWagAA+XEP/0Rfm2qgclzx1A3rbjZV\n7PlKUToAMW6Zlozj+fmg31fz+lyEpA0FJChR0vjCIVfAd6BYqKrUIJ5458Jh\nqkhK2WYTfB3hfwedIfuTnggA68oj6VrjAY5aq74aYCFhiPpE8ySd2kd3Rb6+\nyJX0mYur98if+3ik+tKGg2Rrf90qJ0fgoA47Fz3XxNs3kVvRbo7JDe9BNYR6\nQ0FzGFfRFhSyxFeKXTOCPUR//F5Y7OCQcwaAFk1Eidl8bfqOL02hPGvzPVnx\nywiLu05KcUCqnL9w1QKMrSec7zvL7b/e9niHjkHIPbxXHZ4e2WfFDw9X59AF\nq6SekkQNPifOYrERL//eX/Zy/qWsYvbeXvW5aCmPGseDIc0Mj4vgCMb02zNz\nQ3wZQMtKRHs45/Nbx2bRp+y58gmowlD0c8taqVpkrJbpH6jA0CXCpKn8sCe0\nAO2Gr8J+KaILS8alYbfZpEbaH7EUjmtOhtIA0/s++K+EDb51v4STHnFiONh7\nKJij04tOTECKHmTrx0IrZ8ccbiaIXDkbrY4W0+IcL5J7yxbBqE2jvPJTp9tG\n3OP172nk+Ik69HHpEzViujDe4fPE8ixOIjj5jpaKeHdh7MoqicIcTEGBrQsV\nv136VBgTmNwl9Zufv86aOJyH+VkKSdTXolUFMM3i8ILtu8Vb+cSNcrA/bYA2\nnu6k\r\n=C+MA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVHpwyFPR9/PE5JxxLoARaaDk5XKcXkwuVskhZHp+kAAiBWZFKkW9WtyRHLr7KckRwd82tvq2nAtdnX9sUxtneALQ=="}],"size":2559,"noattachment":false,"key":"/macos-release/-/macos-release-2.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macos-release_2.4.0_1593547419589_0.02882971470958351"},"_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":1593547419703,"_cnpm_publish_time":1593547419703,"dist-tags":{"latest":"3.5.1","version-2":"2.5.1"}}