Home > @rushstack/node-core-library > Executable > getProcessInfoByIdAsync
Executable.getProcessInfoByIdAsync() method
Get the list of processes currently running on the system, keyed by the process ID.
Signature:
static getProcessInfoByIdAsync(): Promise<Map<number, IProcessInfo>>;
Returns:
Promise<Map<number, IProcessInfo>>
Remarks
The underlying implementation depends on the operating system: - On Windows, this uses powershell.exe and the Get-CimInstance cmdlet. - On Unix, this uses the ps utility.