{"name":"os-name","version":"6.1.0","keywords":["os","operating","system","platform","name","title","release","version","macos","windows","linux"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"os-name@6.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/os-name#readme","bugs":{"url":"https://github.com/sindresorhus/os-name/issues"},"dist":{"shasum":"eddc732f5fcf9d942b9183011aea008107bf7af1","tarball":"http://registry-npm.ywwl.com/os-name/download/os-name-6.1.0.tgz","fileCount":5,"integrity":"sha512-zBd1G8HkewNd2A8oQ8c6BN/f/c9EId7rSUueOLGu28govmUctXmM+3765GwsByv9nYUdrLqHphXlYIc86saYsg==","signatures":[{"sig":"MEUCIAjmkoqd1uqz1xKE6xFQCrdp3qsfmpftFjyRzQs97tVMAiEA45Y6nROhb/U+aLeSl2n1KWCP8r3IskX3LBaGwR9Y/dw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4869,"size":2186,"noattachment":false,"key":"/os-name/-/os-name-6.1.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"02d04454bed9479bfdd059d3f74c3fcd7be59ea3","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/os-name.git","type":"git"},"_npmVersion":"10.9.2","description":"Get the name of the current operating system. Example: macOS Sierra","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"macos-release":"^3.3.0","windows-release":"^6.1.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","@types/node":"^20.10.0"},"_npmOperationalInternal":{"tmp":"tmp/os-name_6.1.0_1747953873319_0.12119231494256111","host":"s3://npm-registry-packages-npm-production"},"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":1747953873537,"_cnpm_publish_time":1747953873537,"dist-tags":{"latest":"7.0.1"}}