Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "process/getuid/docs/types/index.d"

Index

Functions

Functions

Export assignment getuid

  • getuid(): number | null
  • Returns the numeric user identity of the calling process.

    Notes

    • The function only returns a user identity on POSIX platforms. For all other platforms (e.g., Windows and Android), the function returns null.

    Returns number | null

    numeric user identity or null

    Example

    var uid = getuid();