Documentation for Simbo's Packages
    Preparing search index...

    Function findBin

    • Finds the path to a binary executable.

      Looks in the node_modules/.bin directories from the working directory up to the file system root first, then in the directories of the PATH environment variable. A name that contains a path separator is resolved against the working directory instead.

      Parameters

      • name: string

        The name of the binary to find.

      • options: Options = {}

        Options for finding the binary.

      Returns Promise<string | undefined>

      The path to the binary if found, or undefined if not.