{"name":"macos-release","version":"3.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"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"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":"f5a7c478464e094a893bb43b0c5038117dd97ba7","_id":"macos-release@3.5.1","bugs":{"url":"https://github.com/sindresorhus/macos-release/issues"},"homepage":"https://github.com/sindresorhus/macos-release#readme","_nodeVersion":"22.22.3","_npmVersion":"11.16.0","dist":{"integrity":"sha512-Lci/1in+elqZ589PXnfP/iwZXpwQifTM94WJRQwG2tZSdfY7NfB/aUaTARHrohWCgHlXoabeaeXRDOnF5X9JQw==","shasum":"d602112880e99d02008e16ed7889d5b964bd203e","tarball":"http://registry-npm.ywwl.com/macos-release/download/macos-release-3.5.1.tgz","fileCount":5,"unpackedSize":5205,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCJsRGLYNz1eULP7fOFoDg862iCC+QTOMF4EvQGVVCkHQIhALUuYYPJZiG2RgZiOvtJh1AFBj/SdqeSjhpi7sF2V2yn"}],"size":2230,"noattachment":false,"key":"/macos-release/-/macos-release-3.5.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/macos-release_3.5.1_1780957831568_0.24748665852438356"},"_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```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":1780957831706,"_cnpm_publish_time":1780957831706,"dist-tags":{"latest":"3.5.1","version-2":"2.5.1"}}