GitShow/sindresorhus/windows-release
sindresorhus

windows-release

Get the name of a Windows version from the release number: 5.1.2600 → XP

by sindresorhus
Star on GitHubForknpm

JavaScript

48 stars16 forks13 contributorsQuiet · 6mo agoSince 2015v7.1.1MIT

Meet the team

See all 13 on GitHub →
sindresorhus
sindresorhus48 contributions
silverwind
silverwind4 contributions
landsfiskalen
landsfiskalen2 contributions
popod
popod2 contributions
TrySound
TrySound1 contribution
BendingBender
BendingBender1 contribution
jssuttles
jssuttles1 contribution
jsoref
jsoref1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
kenchan0130
`windowsRelease()` returns `"11"` instead of `"Server 2025"` on Windows Server 2025ClosedIssue

Summary On Windows Server 2025, returns instead of . This regression was introduced in v7.0.0. In v6.1.0, the correct value was returned. Details returns on both v6.1.0 and v7.0.0+. In v6.1.0, returns . From v7.0.0 onward, returns . Build number 26100 is shared by both Windows 11 24H2 and Windows Server 2025. The function relies on runtime server detection to distinguish between them before falling back to build number-based classification. In v6.1.0, server detection used / , which worked correctly. In v7.0.0+, the server detection method was changed, and it appears to no longer successfully detect Windows Server 2025, causing the function to fall through to the build number check, which classifies build 26100 as Windows 11. Steps to Reproduce 1. Run on a Windows Server 2025 machine (e.g., GitHub Actions ) 2. Call without arguments 3. returns 4. Result: (expected: ) Expected Behavior should return on Windows Server 2025, as it did in v6.1.0. Environment windows-release v7.1.0 Windows Server 2025 (build 26100) :

kenchan0130 · 6mo ago
tabarra
Any hopes for an async API?ClosedIssue

I know this repo being sync server a purpose, but an async API would be a great addition IMO. Perhaps something like this? WMIC can be veeeery slow in some cases.

tabarra · 6mo ago
joejoseph10jj
'wmic' command throwing access denied in azure app serviceClosedIssue

I am trying to get the archive link from my node js application.This is working fine in my local machine but i am getting error in azure private app service. octokit.repos.getArchiveLink({owner:owner,repo:sourceRepoName,archive_format:'zipball',ref:branch}) on executing this command in azure private app service I am getting the following error { Error: Command failed: wmic os get Caption Access is denied. at makeError (D:\home\site\wwwroot\node_modules\execa\index.js:172:9) at Function.module.exports.sync (D:\home\site\wwwroot\node_modules\execa\index.js:341:15) at module.exports.release (D:\home\site\wwwroot\node_modules\windows-release\index.js:34:24) at module.exports (D:\home\site\wwwroot\node_modules\os-name\index.js:39:18) at getUserAgentNode (D:\home\site\wwwroot\node_modules\universal-user-agent\index.js:6:51) at restEndpoint (D:\home\site\wwwroot\node_modules@octokit\rest\lib\endpoint\index.js:27:48) at restRequest (D:\home\site\wwwroot\node_modules@octokit\rest\lib\request\index.js:7:26) code: 1, stdout: '', stderr: 'Access is denied.\r\n', failed: true, signal: null, cmd: 'wmic os get Caption', timedOut: false } So on diving deep into the error I noticed that the wmic command in this package is throwing this error. I contacted with azure team and they said that windows commands execution is denied in azure app service. Can you provide any alternative for this as this was working fine when I was using your earlier module 'win-release'.

joejoseph10jj · 6mo ago
Structured data for AI agents

Repository: sindresorhus/windows-release. Description: Get the name of a Windows version from the release number: 5.1.2600 → XP Stars: 48, Forks: 16. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v7.1.1 (6mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: sindresorhus, silverwind, landsfiskalen, popod, TrySound, BendingBender, jssuttles, jsoref, muntact, Richienb and others.

·@ofershap

Replace github.com with gitshow.dev