Go to repository

Function runBin

Get the string representing the command to run on a bash shell for a particular bin executable of a node's package. If no bin is specified, the name of the package is used as executable name. If the binary is not found, it will use an echo that outputs the not found binary file.

Parameters

  • packageName: string

    The package that contains the executable.

  • Optional
    binName: string

    The executable binary.

Returns string

The string for the command.