We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c34266 commit f6ebd81Copy full SHA for f6ebd81
doc/api/process.md
@@ -1340,6 +1340,12 @@ The `process.getgroups()` method returns an array with the supplementary group
1340
IDs. POSIX leaves it unspecified if the effective group ID is included but
1341
Node.js ensures it always is.
1342
1343
+```js
1344
+if (process.getgroups) {
1345
+ console.log(process.getgroups()); // [ 16, 21, 297 ]
1346
+}
1347
+```
1348
+
1349
This function is only available on POSIX platforms (i.e. not Windows or
1350
Android).
1351
0 commit comments