From c61b8125f60f0f01f7019b88d2e61263f515e6f1 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 --- doc/api/process.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index b9832bc1ff1adf..2736f6d25d66e5 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1426,13 +1426,25 @@ 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. + ## process.ppid