Skip to main content
Process.getuid - node__process.d.ts - Node documentation
property Process.getuid

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
The `process.getuid()` method returns the numeric user identity of the process. (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) ```js 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