{"name":"macos-release","version":"3.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/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":"7c370c87b819f674a78c3670edd0240ff7145b90","bugs":{"url":"https://github.com/sindresorhus/macos-release/issues"},"homepage":"https://github.com/sindresorhus/macos-release#readme","_id":"macos-release@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-y+uUjBt2D1YK0w8k0D19r6O8BYrCkSokWMaTJPvE68RjUOVYQmPXUD7Y4wGphM+/DEJNU+e46hl1lXOzPpvo+w==","shasum":"2dd203bd27545ff45c000ac795878b0f8c30ce6d","tarball":"http://registry-npm.ywwl.com/macos-release/download/macos-release-3.0.0.tgz","fileCount":5,"unpackedSize":5484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFVbHCRA9TVsSAnZWagAApKMP/AncBC3kXAYSINusyik5\nTWMoZiP6jIwrizCh2G+5QWOwwTz6XfukcACtRQVOWtpA1yIANH1LXgqllRPM\nOibz4G62t7kTgKVHlFVJvZrpu3yI4WKtxrz5mWZHCC0qM2VIPnem5T/W9MrU\nmLeN8Xnp0hUePYHBVdnIv8ij3buXb1xlUZ1tigE9fyX3N3pRa4s8VTdCpeHa\nEYTCHeXGFpUG3tokb+/8g4uZ+e9n7IzKGa8aH82FNujjHRmLNwmWJC1UaJyu\nXcu7KhK8zJuX9eoB9q8qo6/Dpa0ujlSq6+M+sqDHpfVxRdgq8S/iBxt34Dkf\nMXK4V4ntUI0UceHKEHvXhNf3V3jhu37Am6Yu3qxBqrzvV3x/Kjn0gpHRxOhD\nHLCCpcWDLVf4cfHtEzo4o883914xDqHljBDOaFCDgQyBkrWqRraJfjc4c2jS\nKYt8msbmCT8LXhfrkKhNIccXln6RU0Tb7W+9hjm40KH+Mt/nZ4oF0hx999Fg\nmVvpGMEipJYBHljFaeQg1JyRuV5AggRvy8ZbFK0ehnezK/Ew7OtnU/Q7q+dc\nJFVj59/lSABSj6UmtRKTmLSnhsR+VSe/4YXgmepZm4CJ64567syL8pZ0QGTN\nCEoBAdQ3Oufbk5JYx5TPJg1MpekqRfvviBGBdEYlhHg3n3EcRGJ/PSVLtsaA\nAUQS\r\n=B8x9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJhJYcD85tzBy3M7+NVB8yUxvhwg0KkOS6Xun2yHE2GwIhAJn0tmqEv+vKSCfoVdazY4sbYQEDbe/lPUOyyDX18GOv"}],"size":2376,"noattachment":false,"key":"/macos-release/-/macos-release-3.0.0.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.0_1628788423574_0.016615062961848004"},"_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":1628788423711,"_cnpm_publish_time":1628788423711,"dist-tags":{"latest":"3.5.1","version-2":"2.5.1"}}