win-release-id
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