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

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

console.log(Deno.getUid());

Requires allow-sys permission.

Returns

number | null