-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: improve process.platform #18057
Conversation
doc/api/process.md
Outdated
|
||
```js | ||
console.log(`This platform is ${process.platform}`); | ||
``` | ||
|
||
*Note*: The value `'android'` may also be returned if the Node.js is built on | ||
the Android operating system. However, Android support in Node.js is considered | ||
to be experimental at this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we link to the supported platforms table? (I forget where it is..)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot find that either...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gibfahn it seems that the table just list the supported platforms, but not the value of the API.
doc/api/process.md
Outdated
|
||
```js | ||
console.log(`This platform is ${process.platform}`); | ||
``` | ||
|
||
*Note*: The value `'android'` may also be returned if the Node.js is built on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking nit: Remove *Note*:
and let the paragraph stand on its own.
doc/api/process.md
Outdated
|
||
```js | ||
console.log(`This platform is ${process.platform}`); | ||
``` | ||
|
||
*Note*: The value `'android'` may also be returned if the Node.js is built on | ||
the Android operating system. However, Android support in Node.js is considered | ||
to be experimental at this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: is considered to be experimental at this time
-> is experimental
.
doc/api/process.md
Outdated
|
||
```js | ||
console.log(`This platform is ${process.platform}`); | ||
``` | ||
|
||
The value `'android'` may also be returned if the Node.js is built on the Android | ||
operating system. However, Android support in Node.js is experimental at this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking nit: remove "at this time"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with or without the nit/suggestion
|
||
```js | ||
console.log(`This platform is ${process.platform}`); | ||
``` | ||
|
||
The value `'android'` may also be returned if the Node.js is built on the | ||
Android operating system. However, Android support in Node.js is experimental. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marswong , in reply to #18057 (comment)
Yes, I was replying to @Fishrock123 's suggestion that we link to the supported platforms table.
Maybe something like this:
Android support in Node.js is experimental.
PR-URL: nodejs#18057 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18057 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18057 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #18057 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#18057 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
doc