process.getuid()

process.getuid()

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

Gets the user identity of the process. (See getuid(2).) This is the numerical userid, not the username.

if (process.getuid) {
  console.log(`Current uid: ${process.getuid()}`);
}
doc_Nodejs
2016-04-30 04:41:14
Comments
Leave a Comment

Please login to continue.