docs: fix process.getSystemVersion() type (#20736)
This commit is contained in:
parent
e8d85b6ded
commit
cdff1bde22
1 changed files with 8 additions and 4 deletions
|
@ -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()`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue