Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

windows-release

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-release

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

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
492K
decreased by-80.4%
Maintainers
1
Weekly downloads
 
Created

What is windows-release?

The windows-release npm package is used to get the name of a Windows version from the release number. This can be particularly useful for applications that need to display or log the Windows version in a human-readable format.

What are windows-release's main functionalities?

Get Windows Version Name

This feature allows you to get the name of the Windows version based on the release number. By default, it uses the current operating system's release number.

const windowsRelease = require('windows-release');
console.log(windowsRelease()); // e.g., '10' for Windows 10

Get Windows Version Name from Specific Release Number

This feature allows you to get the name of the Windows version from a specific release number. This can be useful for parsing and displaying version information from logs or other data sources.

const windowsRelease = require('windows-release');
console.log(windowsRelease('10.0.19041')); // '10' for Windows 10

Other packages similar to windows-release

Keywords

FAQs

Package last updated on 18 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc