Skip to main content
function Deno.getUid
allow-env
Unstable

Returns the user id of the process on POSIX platforms. Returns null on Windows.

console.log(Deno.getUid());

Requires allow-env permission.

Returns

number | null