File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -1439,13 +1439,26 @@ added: v0.1.16
1439
1439
* {string}
1440
1440
1441
1441
The ` process.platform ` property returns a string identifying the operating
1442
- system platform on which the Node.js process is running. For instance
1443
- ` 'darwin' ` , ` 'freebsd' ` , ` 'linux' ` , ` 'sunos' ` or ` 'win32' `
1442
+ system platform on which the Node.js process is running.
1443
+
1444
+ Currently possible values are:
1445
+
1446
+ * ` 'aix' `
1447
+ * ` 'darwin' `
1448
+ * ` 'freebsd' `
1449
+ * ` 'linux' `
1450
+ * ` 'openbsd' `
1451
+ * ` 'sunos' `
1452
+ * ` 'win32' `
1444
1453
1445
1454
``` js
1446
1455
console .log (` This platform is ${ process .platform } ` );
1447
1456
```
1448
1457
1458
+ The value ` 'android' ` may also be returned if the Node.js is built on the
1459
+ Android operating system. However, Android support in Node.js
1460
+ [ is experimental] [ Supported platforms ] .
1461
+
1449
1462
## process.ppid
1450
1463
<!-- YAML
1451
1464
added: v9.2.0
@@ -2017,5 +2030,6 @@ cases:
2017
2030
[ Readable ] : stream.html#stream_readable_streams
2018
2031
[ Signal Events ] : #process_signal_events
2019
2032
[ Stream compatibility ] : stream.html#stream_compatibility_with_older_node_js_versions
2033
+ [ Supported platforms ] : https://github.com/nodejs/node/blob/master/BUILDING.md#supported-platforms-1
2020
2034
[ TTY ] : tty.html#tty_tty
2021
2035
[ Writable ] : stream.html#stream_writable_streams
You can’t perform that action at this time.
0 commit comments