mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
docs: fix process.getSystemVersion() type (#20767)
This commit is contained in:
@@ -217,11 +217,15 @@ that all statistics are reported in Kilobytes.
|
|||||||
|
|
||||||
Returns `String` - The version of the host operating system.
|
Returns `String` - The version of the host operating system.
|
||||||
|
|
||||||
Examples:
|
Example:
|
||||||
|
|
||||||
* `macOS` -> `10.13.6`
|
```js
|
||||||
* `Windows` -> `10.0.17763`
|
const version = process.getSystemVersion()
|
||||||
* `Linux` -> `4.15.0-45-generic`
|
console.log(version)
|
||||||
|
// On macOS -> '10.13.6'
|
||||||
|
// On Windows -> '10.0.17763'
|
||||||
|
// On Linux -> '4.15.0-45-generic'
|
||||||
|
```
|
||||||
|
|
||||||
**Note:** It returns the actual operating system version instead of kernel version on macOS unlike `os.release()`.
|
**Note:** It returns the actual operating system version instead of kernel version on macOS unlike `os.release()`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user