From 5c5aa4969c2001eb3e509befdf36a8c825187806 Mon Sep 17 00:00:00 2001 From: Mars Wong Date: Tue, 9 Jan 2018 19:15:59 +0800 Subject: [PATCH] doc: improve process.platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/18057 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater --- doc/api/process.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 44b48b4f4b6f22..405d6296353f88 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1439,13 +1439,26 @@ 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. For instance -`'darwin'`, `'freebsd'`, `'linux'`, `'sunos'` or `'win32'` +system platform on which the Node.js process is running. + +Currently possible values are: + +* `'aix'` +* `'darwin'` +* `'freebsd'` +* `'linux'` +* `'openbsd'` +* `'sunos'` +* `'win32'` ```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][Supported platforms]. + ## process.ppid