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

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
The `process.geteuid()` method returns the numerical effective user identity of the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) ```js import process from 'node:process'; if (process.geteuid) { console.log(`Current uid: ${process.geteuid()}`); } ``` This function is only available on POSIX platforms (i.e. not Windows or Android).

Type

() => number