Get the name of a Windows version from the release number: 5.1.2600 → XP
Installations
npm install win-release
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=6
Node Version
8.11.1
NPM Version
5.6.0
Score
97.9
Supply Chain
79.3
Quality
74.7
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (97.01%)
TypeScript (2.99%)
Developer
sindresorhus
Download Statistics
Total Downloads
143,146,763
Last Day
43,041
Last Week
218,503
Last Month
1,080,685
Last Year
15,705,926
GitHub Statistics
43 Stars
54 Commits
14 Forks
8 Watching
1 Branches
12 Contributors
Bundle Size
32.35 kB
Minified
10.53 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.0.0
Package Id
win-release@3.0.0
Size
2.29 kB
NPM Version
5.6.0
Node Version
8.11.1
Publised On
18 May 2018
Total Downloads
Cumulative downloads
Total Downloads
143,146,763
Last day
-8.7%
43,041
Compared to previous day
Last week
-20.9%
218,503
Compared to previous week
Last month
0.4%
1,080,685
Compared to previous month
Last year
-20.5%
15,705,926
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
win-release ![Build Status](https://travis-ci.org/sindresorhus/win-release.svg?branch=master)
Get the name of a Windows version from the release number:
5.1.2600
→XP
Install
$ npm install win-release
Usage
1const os = require('os'); 2const winRelease = require('win-release'); 3 4// On a Windows XP system 5 6winRelease(); 7//=> 'XP' 8 9os.release(); 10//=> '5.1.2600' 11 12winRelease(os.release()); 13//=> 'XP' 14 15winRelease('4.9.3000'); 16//=> 'ME'
API
winRelease([release])
release
Type: string
By default, the current OS is used, but you can supply a custom release number, which is the output of os.release()
.
Note: 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()
.
Related
- os-name - Get the name of the current operating system
- macos-release - Get the name and version of a macOS release from the Darwin version
License
MIT © Sindre Sorhus
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
- Info: security policy file detected: .github/security.md:1
- Info: Found linked content: .github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1
- Info: Found text in security policy: .github/security.md:1
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
0 existing vulnerabilities detected
Reason
Found 10/30 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/windows-release/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/windows-release/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:21
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 10 are checked with a SAST tool
Score
4.3
/10
Last Scanned on 2025-01-20
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More