function Deno.getUid

Unstable new API. yet to be vetted.

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