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.

function getUid(): number | null;
§
getUid(): number | null
[src]

§Return Type

§
number | null
[src]