Skip to main content
Build Real-time Applications with the new "watch" API in Deno KV
Read more
function Deno.uid
allow-sys

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

console.log(Deno.uid());

Requires allow-sys permission.

Returns

number | null