win-ver
Get the Windows version as returned by ver
.
Installation
npm install win-ver
Quickstart
const ver = // => '10.0.15063'
API
- Returns a
Promise
which either- resolves with the semver version string
- or rejects with
EWIN32ONLY
(ifprocess.platform
is notwin32
), - or rejects with any error that occured while executing
ver
.
License
WTFPL – Do What the F*ck You Want to Public License.
Made with ❤️ by @MarkTiedemann.