Function searchUp

  • Starting from cwd, searches up the directory hierarchy for filePath. If multiple strings are given, searches each directory level for any of them.

    Parameters

    • filePath: string | string[]
    • cwd: string

    Returns undefined | string

    Full path to the item found, or undefined if not found.

Generated using TypeDoc