From 5fc689dc4ec7e768af1cf733f4069b3570367e98 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Sun, 27 Oct 2019 11:21:00 -0700 Subject: [PATCH] docs: fix process.getSystemVersion() type (#20767) --- docs/api/process.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/api/process.md b/docs/api/process.md index 9241897546..87e34cba02 100644 --- a/docs/api/process.md +++ b/docs/api/process.md @@ -217,11 +217,15 @@ that all statistics are reported in Kilobytes. Returns `String` - The version of the host operating system. -Examples: +Example: -* `macOS` -> `10.13.6` -* `Windows` -> `10.0.17763` -* `Linux` -> `4.15.0-45-generic` +```js +const version = process.getSystemVersion() +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()`.