Skip to content

Latest commit

 

History

History
105 lines (61 loc) · 2.86 KB

File metadata and controls

105 lines (61 loc) · 2.86 KB

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 );

See Also