Return the numeric group identity of the calling process.
var getgid = require( '@stdlib/process/getgid' );
Returns the numeric group identity of the calling process.
var id = getgid();
- The function only returns an
integer
group identity on POSIX platforms. For all other platforms (e.g., Windows, browsers, and Android), the function returnsnull
. - See getgid(2).
var getgid = require( '@stdlib/process/getgid' );
var gid = getgid();
console.log( 'gid: %d', gid );
@stdlib/process/getegid
: return the effective numeric group identity of a calling process.@stdlib/process/geteuid
: return the effective numeric user identity of a calling process.@stdlib/process/getuid
: return the numeric user identity of a calling process.