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
- Host: GitHub
- URL: https://github.com/keqingrong/win-release-id
- Owner: keqingrong
- License: mit
- Created: 2018-02-23T12:11:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T06:28:31.000Z (over 4 years ago)
- Last Synced: 2025-04-19T08:23:50.857Z (about 1 year ago)
- Topics: release, release-id, version, windows
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# win-release-id
[](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