mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: improve docs to give descriptive info for the platform property
PR-URL: https://github.com/nodejs/node/pull/41650 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
This commit is contained in:
1 parent
4d8ee8e3cd
commit
9616fd5913
2 files changed
+5
-4
No files matched your search
+4
-3
@@ -299,9 +299,10 @@ added: v0.5.0
|
||||
|
||||
* Returns: {string}
|
||||
|
||||
Returns a string identifying the operating system platform. The value is set
|
||||
at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,
|
||||
`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
|
||||
Returns a string identifying the operating system platform for which
|
||||
the Node.js binary was compiled. The value is set at compile time.
|
||||
Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`,
|
||||
`'openbsd'`, `'sunos'`, and `'win32'`.
|
||||
|
||||
The return value is equivalent to [`process.platform`][].
|
||||
|
||||
|
||||
+1
-1
@@ -2609,7 +2609,7 @@ added: v0.1.16
|
||||
* {string}
|
||||
|
||||
The `process.platform` property returns a string identifying the operating
|
||||
system platform on which the Node.js process is running.
|
||||
system platform for which the Node.js binary was compiled.
|
||||
|
||||
Currently possible values are:
|
||||
|
||||
|
||||
Reference in new issue
Block a user