Home > @rushstack/node-core-library > Executable > getProcessInfoById
Executable.getProcessInfoById() method
Get the list of processes currently running on the system, keyed by the process ID.
Signature:
static getProcessInfoById(): Map<number, IProcessInfo>;
Returns:
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.