Skip to main content
Process.getegid - node__process.d.ts - Node documentation
property Process.getegid

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
The `process.getegid()` method returns the numerical effective group identity of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) ```js import process from 'node:process'; if (process.getegid) { console.log(`Current gid: ${process.getegid()}`); } ``` This function is only available on POSIX platforms (i.e. not Windows or Android).

Type

() => number