Skip to main content
Deno.uid - Deno documentation
function Deno.uid
allow-sys
uid(): number | null
Returns the user id of the process on POSIX platforms. Returns null on Windows. ```ts console.log(Deno.uid()); ``` Requires `allow-sys` permission.

Return Type

number | null