{"_id":"windows-release","_rev":"185058","name":"windows-release","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","dist-tags":{"latest":"5.0.1"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2022-10-18T11:02:58.000Z","created":"2018-05-18T04:58:36.222Z","5.0.1":"2021-11-11T11:46:25.374Z","5.0.0":"2021-08-09T21:51:15.481Z","4.0.0":"2020-08-10T19:03:20.821Z","3.3.3":"2020-08-10T19:01:17.502Z","3.3.2":"2020-08-10T18:58:48.448Z","3.3.1":"2020-06-08T10:22:12.854Z","3.3.0":"2020-04-06T12:01:39.076Z","3.2.0":"2019-04-05T07:11:46.422Z","3.1.0":"2018-05-18T04:58:36.222Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"versions":{"5.0.1":{"name":"windows-release","version":"5.0.1","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-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","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^5.1.1"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"edb4b7b5efc4c92bcd32d41701f6f727dff0c485","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@5.0.1","_nodeVersion":"12.22.1","_npmVersion":"8.1.0","dist":{"shasum":"d1f7cd1f25660ba05cac6359711844dce909a8ed","size":2924,"noattachment":false,"key":"/windows-release/-/windows-release-5.0.1.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-5.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_5.0.1_1636631185234_0.9012357485435685"},"_hasShrinkwrap":false,"publish_time":1636631185374,"_cnpm_publish_time":1636631185374,"_cnpmcore_publish_time":"2021-12-14T06:04:24.209Z"},"5.0.0":{"name":"windows-release","version":"5.0.0","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-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","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^5.1.1"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"e155571bdaa59201c1f9a5ba78af9e55d539ec96","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"43e0b2fa59a37ebc3c8f34db06ed838021d3b531","size":2776,"noattachment":false,"key":"/windows-release/-/windows-release-5.0.0.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_5.0.0_1628545875350_0.7846217850634982"},"_hasShrinkwrap":false,"publish_time":1628545875481,"_cnpm_publish_time":1628545875481,"_cnpmcore_publish_time":"2021-12-14T06:04:24.405Z"},"4.0.0":{"name":"windows-release","version":"4.0.0","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^4.0.2"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.33.0"},"gitHead":"6aeae881096dacdba381fe3f16495de58388f406","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@4.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4725ec70217d1bf6e02c7772413b29cdde9ec377","size":2826,"noattachment":false,"key":"/windows-release/-/windows-release-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_4.0.0_1597086200730_0.36969680929319226"},"_hasShrinkwrap":false,"publish_time":1597086200821,"_cnpm_publish_time":1597086200821},"3.3.3":{"name":"windows-release","version":"3.3.3","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"138a34491420ccab83cf67e31a3e11019c92ae37","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@3.3.3","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1c10027c7225743eec6b89df160d64c2e0293999","size":2819,"noattachment":false,"key":"/windows-release/-/windows-release-3.3.3.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-3.3.3.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_3.3.3_1597086077363_0.6378400222450025"},"_hasShrinkwrap":false,"publish_time":1597086077502,"_cnpm_publish_time":1597086077502},"3.3.2":{"name":"windows-release","version":"3.3.2","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^4.0.2"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.33.0"},"gitHead":"aeed2f6e55cc939ae8bbd8a301d90401a853d2f9","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@3.3.2","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ac137bb791ba7672b31d960d811dae765ad21e11","size":2825,"noattachment":false,"key":"/windows-release/-/windows-release-3.3.2.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-3.3.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_3.3.2_1597085928354_0.6802069134715378"},"_hasShrinkwrap":false,"publish_time":1597085928448,"_cnpm_publish_time":1597085928448},"3.3.1":{"name":"windows-release","version":"3.3.1","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"138a34491420ccab83cf67e31a3e11019c92ae37","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@3.3.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cb4e80385f8550f709727287bf71035e209c4ace","size":2822,"noattachment":false,"key":"/windows-release/-/windows-release-3.3.1.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-3.3.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_3.3.1_1591611732665_0.09891874813879653"},"_hasShrinkwrap":false,"publish_time":1591611732854,"_cnpm_publish_time":1591611732854},"3.3.0":{"name":"windows-release","version":"3.3.0","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"39b78e784527b9202968bf518640283f57541fe1","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@3.3.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"dce167e9f8be733f21c849ebd4d03fe66b29b9f0","size":2822,"noattachment":false,"key":"/windows-release/-/windows-release-3.3.0.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-3.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_3.3.0_1586174498945_0.17546122507484974"},"_hasShrinkwrap":false,"publish_time":1586174499076,"_cnpm_publish_time":1586174499076},"3.2.0":{"name":"windows-release","version":"3.2.0","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"a6e1ca4f8676f3cc9894ea2881b05dee5372336e","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@3.2.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8122dad5afc303d833422380680a79cdfa91785f","size":2461,"noattachment":false,"key":"/windows-release/-/windows-release-3.2.0.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_3.2.0_1554448306266_0.4478540093247101"},"_hasShrinkwrap":false,"publish_time":1554448306422,"_cnpm_publish_time":1554448306422},"3.1.0":{"name":"windows-release","version":"3.1.0","description":"Get the name of a Windows version from the release number: `5.1.2600` → `XP`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/windows-release.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["os","win","win32","windows","operating","system","platform","name","title","release","version"],"dependencies":{"execa":"^0.10.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"e5cf59031b404a33277c04e9d5081961e4603e9d","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"homepage":"https://github.com/sindresorhus/windows-release#readme","_id":"windows-release@3.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8d4a7e266cbf5a233f6c717dac19ce00af36e12e","size":2344,"noattachment":false,"key":"/windows-release/-/windows-release-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/windows-release/download/windows-release-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/windows-release_3.1.0_1526619516128_0.09882388199810288"},"_hasShrinkwrap":false,"publish_time":1526619516222,"_cnpm_publish_time":1526619516222}},"readme":"# windows-release\n\n> Get the name of a Windows version from the release number: `5.1.2600` → `XP`\n\n## Install\n\n```\n$ npm install windows-release\n```\n\n## Usage\n\n```js\nimport os from 'node:os';\nimport windowsRelease from 'windows-release';\n\n// On a Windows XP system\n\nwindowsRelease();\n//=> 'XP'\n\nos.release();\n//=> '5.1.2600'\n\nwindowsRelease(os.release());\n//=> 'XP'\n\nwindowsRelease('4.9.3000');\n//=> 'ME'\n```\n\n## API\n\n### windowsRelease(release?)\n\n#### release\n\nType: `string`\n\nBy default, the current OS is used, but you can supply a custom release number, which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release).\n\nNote: Most Windows Server versions cannot be detected based on the release number alone. There is runtime detection in place to work around this, but it will only be used if no argument is supplied, or the supplied argument matches `os.release()`.\n\n## Related\n\n- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system\n- [macos-release](https://github.com/sindresorhus/macos-release) - Get the name and version of a macOS release from the Darwin version\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-windows-release?utm_source=npm-windows-release&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/windows-release#readme","bugs":{"url":"https://github.com/sindresorhus/windows-release/issues"},"license":"MIT"}