{"name":"macos-release","version":"3.3.0","keywords":["macos","os","darwin","operating","system","platform","name","title","release","version"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"macos-release@3.3.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/macos-release#readme","bugs":{"url":"https://github.com/sindresorhus/macos-release/issues"},"dist":{"shasum":"92cb67bc66d67c3fde4a9e14f5f909afa418b072","tarball":"http://registry-npm.ywwl.com/macos-release/download/macos-release-3.3.0.tgz","fileCount":5,"integrity":"sha512-tPJQ1HeyiU2vRruNGhZ+VleWuMQRro8iFtJxYgnS4NQe+EukKF6aGiIT+7flZhISAt2iaXBCfFGvAyif7/f8nQ==","signatures":[{"sig":"MEUCIAI+g56mJME6TCh/NIaYSTqfQTWMPQkqXkUKLetQK8jKAiEAo3tU//j/krATOOjVZ3BvSuMb9awux9hcax9rZT9jiU0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5151,"size":2210,"noattachment":false,"key":"/macos-release/-/macos-release-3.3.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"f349212f7050d65ec7ec16a296ef3a1cc5a19a2f","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/macos-release.git","type":"git"},"_npmVersion":"10.6.0","description":"Get the name and version of a macOS release from the Darwin version","directories":{},"sideEffects":false,"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0","tsd":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/macos-release_3.3.0_1722441793955_0.37749484331096816","host":"s3://npm-registry-packages"},"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```sh\nnpm 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- [windows-release](https://github.com/sindresorhus/windows-release) - Get the name of a Windows version from the release number: `5.1.2600` → `XP`\n","publish_time":1722441794109,"_cnpm_publish_time":1722441794109,"dist-tags":{"latest":"3.5.1","version-2":"2.5.1"}}