You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: doc/api/os.markdown
+19-1
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,25 @@ Returns the operating system name.
24
24
25
25
## os.platform()
26
26
27
-
Returns the operating system platform.
27
+
Returns the operating system platform. Some of the possible values are
28
+
`"linux"`, `"darwin"`, `"win32"`, `"sunos"` ...
29
+
30
+
Its value is based on [`OS` constant of `gyp`](https://chromium.googlesource.com/external/gyp/+/HEAD/docs/InputFormatReference.md#Predefined-Variables)
31
+
, but with exceptions in case of Mac OS X, Windows and Solaris.
32
+
33
+
On Windows its value is always `"win32"`, on Mac OS X its `"darwin"` and on
34
+
Solaris its `"sunos"`.
35
+
36
+
Heres a list of possible values for some platforms:
0 commit comments