getegid

Return the effective numeric group identity of the calling process.

Usage

var getegid = require( '@stdlib/process/getegid' );

getegid()

Returns the effective numeric group identity of the calling process.

var id = getegid();

Notes

  • The function only returns an integer group identity on POSIX platforms. For all other platforms (e.g., Windows, browsers, and Android), the function returns null.
  • See getegid(2).

Examples

var getegid = require( '@stdlib/process/getegid' );

var gid = getegid();
console.log( 'gid: %d', gid );
Did you find this page helpful?