From 53e01f650f14eaf9fb47d4ea15db1d34bd70f221 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 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/api/os.md b/doc/api/os.md index 4a1007f74db002..2f71d10090ca85 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -220,6 +220,22 @@ 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`.