Skip to main content
Process.getuid - process - Node documentation
property Process.getuid

Usage in Deno

import { type Process } from "node:process";

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

import process from 'node:process';

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

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

Type

() => number
Back to top