Options
All
  • Public
  • Public/Protected
  • All
Menu

Project cross-spawn-windows-exe

Index

Type aliases

CrossSpawnExeOptions

CrossSpawnExeOptions: CrossSpawnOptions & { wrapperCommand?: string; wrapperInstructions?: string }

An extension to CrossSpawnOptions to optionally specify a custom wrapper command and instructions to install the wrapper.

DetermineWrapperFunction

DetermineWrapperFunction: (customPath?: string) => string

A function which determines the wrapper path or binary to use in [[spawnWrapper]].

param

The path specified by CrossSpawnExeOptions.wrapperCommand, usually prioritized over other paths/binaries in the function.

Type declaration

    • (customPath?: string): string
    • Parameters

      • Optional customPath: string

      Returns string

Functions

canRunWindowsExeNatively

  • canRunWindowsExeNatively(): boolean

normalizePath

  • normalizePath(pathToNormalize: string): Promise<string>
  • Converts a UNIX-style path to a Windows-style path if run in a WSL environment.

    Parameters

    • pathToNormalize: string

    Returns Promise<string>

spawn

  • A wrapper for cross-spawn's spawn function that wraps the cmd with wrapperCommand if it is specified.

    Parameters

    Returns Promise<string>

spawnDotNet

  • Spawn a .NET executable. On non-Windows platforms, use Nono to run it.

    Parameters

    Returns Promise<string>

spawnExe

  • Spawn a Windows executable. On non-Windows platforms, use Wine to run it.

    Parameters

    Returns Promise<string>

spawnWrapperFromFunction

Generated using TypeDoc