Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9616fd5

Browse filesBrowse files
twitharshildanielleadams
authored andcommitted
doc: improve docs to give descriptive info for the platform property
PR-URL: #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>
1 parent 4d8ee8e commit 9616fd5
Copy full SHA for 9616fd5

File tree

Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/os.md‎

Copy file name to clipboardExpand all lines: doc/api/os.md
+4-3Lines changed: 4 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,10 @@ added: v0.5.0
299299

300300
* Returns: {string}
301301

302-
Returns a string identifying the operating system platform. The value is set
303-
at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,
304-
`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
302+
Returns a string identifying the operating system platform for which
303+
the Node.js binary was compiled. The value is set at compile time.
304+
Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`,
305+
`'openbsd'`, `'sunos'`, and `'win32'`.
305306

306307
The return value is equivalent to [`process.platform`][].
307308

Collapse file

‎doc/api/process.md‎

Copy file name to clipboardExpand all lines: doc/api/process.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ added: v0.1.16
26092609
* {string}
26102610
26112611
The `process.platform` property returns a string identifying the operating
2612-
system platform on which the Node.js process is running.
2612+
system platform for which the Node.js binary was compiled.
26132613
26142614
Currently possible values are:
26152615

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.