{"_id":"os-name@7.0.1","bugs":{"url":"https://github.com/sindresorhus/os-name/issues"},"dist":{"shasum":"2b6ffe18a3965c41118c3dc282f60fc27f7fe03b","tarball":"http://registry-npm.ywwl.com/os-name/download/os-name-7.0.1.tgz","fileCount":5,"integrity":"sha512-aja0ZAEzcuhIU+sy/r0c9UszTgxm4qtMPNWx8lJJ+IGLG7igf6Ba+ipX912SIGlHAWBaK+qJq9n2UaR3Kh99Wg==","signatures":[{"sig":"MEUCIQChMHhR6M5SDDXy6Ni9Ul6kawr1ZGjIraeI1T6ZK2P/zAIgB57+xxrYScbJg56aUNVT4ZQF9EWlU5dRpMy4OqjTj/0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEsuwBtlyheXsofRtKME87EXLAyqE0YDIZSdgaKPoAS6AiAiXuN96lk4S1diKvG+lO96kIryZEw1Kb/u3ZYA9JTKRw=="}],"unpackedSize":5534,"size":2427,"noattachment":false,"key":"/os-name/-/os-name-7.0.1.tgz"},"name":"os-name","type":"module","types":"./index.d.ts","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"engines":{"node":">=20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"07b9a0301d58838e5802eaadf4bfb9341666de4b","license":"MIT","scripts":{"test":"xo && ava && tsd"},"version":"7.0.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"homepage":"https://github.com/sindresorhus/os-name#readme","keywords":["os","operating","system","platform","name","title","release","version","macos","windows","linux"],"repository":{"url":"git+https://github.com/sindresorhus/os-name.git","type":"git"},"_npmVersion":"12.0.1","description":"Get the name of the current operating system. Example: macOS Sierra","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"macos-release":"^3.4.0","windows-release":"^7.1.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.3","ava":"^6.4.1","tsd":"^0.33.0","@types/node":"^25.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/os-name_7.0.1_1789767703166_0.8839577709866042"},"readme":"# os-name\n\n> Get the name of the current operating system\\\n> Example: `macOS Sierra`\n\nUseful for analytics and debugging.\n\n## Install\n\n```sh\nnpm install os-name\n```\n\n## Usage\n\n```js\nimport osName from 'os-name';\n\n// On a macOS Sierra system\n\nosName();\n//=> 'macOS Sierra'\n\n// On an Ubuntu system\n\nosName();\n//=> 'Ubuntu 20.04.1 LTS'\n\nosName('darwin', '14.0.0');\n//=> 'OS X Yosemite'\n\nosName('linux', '3.13.0-24-generic');\n//=> 'Linux 3.13'\n\nosName('win32', '6.3.9600');\n//=> 'Windows 8.1'\n```\n\n## API\n\n### osName(platform?, release?)\n\nBy default, the name of the current operating system is returned.\n\nOn Linux, it reads the pretty name from `/etc/os-release` when available (e.g., `'Ubuntu 20.04.1 LTS'`, `'Debian GNU/Linux 12 (bookworm)'`). When a custom release is provided, it falls back to `'Linux <version>'`.\n\nYou can optionally supply a custom [`os.platform()`](https://nodejs.org/api/os.html#os_os_platform) and [`os.release()`](https://nodejs.org/api/os.html#os_os_release).\n\n## Related\n\n- [os-name-cli](https://github.com/sindresorhus/os-name-cli) - CLI for this module\n","publish_time":1789767703261,"_cnpm_publish_time":1789767703261,"dist-tags":{"latest":"7.0.1"}}