Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 327 Bytes

process_getuid.md

File metadata and controls

18 lines (13 loc) · 327 Bytes
  • Returns: {integer}

The process.getuid() method returns the numeric user identity of the process. (See getuid(2).)

if (process.getuid) {
  console.log(`Current uid: ${process.getuid()}`);
}

Note: This function is only available on POSIX platforms (i.e. not Windows or Android).