From 2e767bf18b0e21ccacbd1f5805a4560c328f7423 Mon Sep 17 00:00:00 2001 From: Colin Ihrig Date: Sun, 27 Nov 2022 15:52:30 -0500 Subject: [PATCH] doc: move os.machine() docs to sorted position This commit moves the os.machine() docs so that the API list is sorted. PR-URL: https://github.com/nodejs/node/pull/45647 Reviewed-By: Richard Lau Reviewed-By: Moshe Atlow Reviewed-By: Luigi Pinca --- doc/api/os.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/api/os.md b/doc/api/os.md index 245371e9cfac4a..e2e702dcea5ef4 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -220,6 +220,24 @@ system and expressed as a fractional number. The load average is a Unix-specific concept. On Windows, the return value is always `[0, 0, 0]`. +## `os.machine()` + + + +* Returns {string} + +Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, +`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`. + +On POSIX systems, the machine type is determined by calling +[`uname(3)`][]. On Windows, `RtlGetVersion()` is used, and if it is not +available, `GetVersionExW()` will be used. See + for more information. + ## `os.networkInterfaces()` - -* Returns {string} - -Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, -`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`. - -On POSIX systems, the machine type is determined by calling -[`uname(3)`][]. On Windows, `RtlGetVersion()` is used, and if it is not -available, `GetVersionExW()` will be used. See - for more information. - ## OS constants The following constants are exported by `os.constants`.