win-release-id

1.0.6 • Public • Published

win-release-id

npm version

Get the release id of the current Windows OS

Installation

npm install win-release-id

Usage

const winReleaseId = require('win-release-id');

// on Windows 10 20H2 Build 19042.572
winReleaseId();
// => 2009

// on Windows 10 v1607 Build 14393
winReleaseId();
// => 1607

// before 10 (Windows 7/8/8.1 etc.)
winReleaseId();
// => -1

winReleaseId('10.0.16299.214');
// => 1709

winReleaseId('6.1.7601');
// => -1

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i win-release-id

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

4.26 kB

Total Files

4

Last publish

Collaborators

  • dearke