UNPKG

@jjeem/detect-shell

Version:

detect shells available on the system

15 lines (14 loc) 532 B
export interface IPowerShellExeDetails { readonly displayName: string; readonly exePath: string; } export interface IPossiblePowerShellExe extends IPowerShellExeDetails { exists(): Promise<boolean>; } /** * Iterates through PowerShell installations on the machine according * to configuration passed in through the constructor. * PowerShell items returned by this object are verified * to exist on the filesystem. */ export declare function enumeratePowerShellInstallations(): AsyncIterable<IPowerShellExeDetails>;