winversion
This package allows you to determine the running version of the Windows operating system.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install winversion
choosenim install winversion
git clone https://github.com/rockcavera/winversion
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| winversion | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/rockcavera/winversion |
|---|---|
| Homepage | https://github.com/rockcavera/winversion |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
winversion
This package allows you to determine the running version of the Windows operating system.
The two main features are: * get the name of the version of the operating system running; * and determine if the running version is equal to or greater than a particular version of Windows.
Works only on Windows operating systems!
Install
Run the Nimble install command
nimble install winversion
Basic usage
import winversion
# Get the name of the version of the operating system running.
let nameOS = getWindowsOS()
echo nameOS
# Determine if running version is equal to or higher than Windows Vista.
if isWindowsVistaOrGreater():
echo "It's Windows Vista or greater"
else:
echo "It's not Windows Vista or greater"
# Returns version information about the currently running operating system.
let info = getWindowsVersion()
echo info
# Returns version extended information about the currently running operating system.
let infoEx = getWindowsVersionEx()
echo infoEx