Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 982 Bytes

whoami.md

File metadata and controls

47 lines (33 loc) · 982 Bytes

WhoAmIResult (interface)

The type of the return value of whoami.

declare interface WhoAmIResult {
  name: string;
  uid: number;
  gid: number;
}

WhoAmIResult.name (string property)

name: string;

WhoAmIResult.uid (number property)

uid: number;

WhoAmIResult.gid (number property)

gid: number;

whoami (function)

Get info about the user the yavascript process is executing as.

Provides functionality similar to the unix binaries whoami and id.

NOTE: Doesn't work on Windows; throws an error.

declare function whoami(): WhoAmIResult;