Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Executable > getProcessInfoByNameAsync

Executable.getProcessInfoByNameAsync() method

Get the list of processes currently running on the system, keyed by the process name. All processes with the same name will be grouped.

Signature:

static getProcessInfoByNameAsync(): Promise<Map<string, IProcessInfo[]>>;

Returns:

Promise<Map<string, 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.