{"name":"os-name","version":"7.0.0","description":"Get the name of the current operating system. Example: macOS Sierra","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/os-name.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","operating","system","platform","name","title","release","version","macos","windows","linux"],"dependencies":{"macos-release":"^3.4.0","windows-release":"^7.1.0"},"devDependencies":{"@types/node":"^25.2.0","ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"aaec033dab174cbe06c1cf64393491bc341e4770","types":"./index.d.ts","_id":"os-name@7.0.0","bugs":{"url":"https://github.com/sindresorhus/os-name/issues"},"homepage":"https://github.com/sindresorhus/os-name#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-/HfRU/lPPr4T2VigM+cvM3cU77es+XF4OEAa4aE5zpdvrxHGD2NmH0AFIWpMNAb+CsZL45rlcIO49Re0ZcRseg==","shasum":"426f4dd32c1a83e3460caf56bf4b73aba22e8199","tarball":"http://registry-npm.ywwl.com/os-name/download/os-name-7.0.0.tgz","fileCount":5,"unpackedSize":5574,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/bFHK94G9LqxAZy0dI6BOWSEwmhlc0xzIYqQHXfpYqwIhALjXi3yzBjovlhjk8YfAK1ee9MBDSzqtIoVKkJUlJf6v"}],"size":2403,"noattachment":false,"key":"/os-name/-/os-name-7.0.0.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/os-name_7.0.0_1770044594923_0.13768455753068687"},"_hasShrinkwrap":false,"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":1770044595070,"_cnpm_publish_time":1770044595070,"dist-tags":{"latest":"7.0.1"}}