An open API service indexing awesome lists of open source software.

https://github.com/keqingrong/win-release-id

Get the release id of the current Windows OS
https://github.com/keqingrong/win-release-id

release release-id version windows

Last synced: 10 months ago
JSON representation

Get the release id of the current Windows OS

Awesome Lists containing this project

README

          

# win-release-id

[![npm version](https://img.shields.io/npm/v/win-release-id.svg)](https://www.npmjs.com/package/win-release-id)

> Get the release id of the current Windows OS

## Installation

```sh
npm install win-release-id
```

## Usage

```js
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