0.1.0 • Published 9 years ago
win-ver v0.1.0
win-ver
Get the Windows version as returned by ver.
Installation
npm install win-verQuickstart
const ver = require('win-ver')
ver()
.then(console.log) // => '10.0.15063'
.catch(console.error)API
- Returns a
Promisewhich either- resolves with the semver version string
- or rejects with
EWIN32ONLY(ifprocess.platformis 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 :heart: by @MarkTiedemann.
0.1.0
9 years ago