https://github.com/rockcavera/winversion
This package allows you to determine the running version of the Windows operating system.
https://github.com/rockcavera/winversion
nim nim-lang version windows
Last synced: about 2 months ago
JSON representation
This package allows you to determine the running version of the Windows operating system.
- Host: GitHub
- URL: https://github.com/rockcavera/winversion
- Owner: rockcavera
- License: mit
- Created: 2019-10-16T14:02:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-17T19:20:07.000Z (over 3 years ago)
- Last Synced: 2025-07-29T01:16:08.993Z (11 months ago)
- Topics: nim, nim-lang, version, windows
- Language: Nim
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```nim
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
```