Process.getegid - Node documentation
property Process.getegid

Usage in Deno

import { type Process } from "node:process";

The process.getegid() method returns the numerical effective group identity of the Node.js process. (See getegid(2).)

import process from '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