• Find a file by walking parent directories.

    Parameters

    • matcher: string | readonly string[] | ((directory) => Match | Promise<Match>)

      A pattern or an array of patterns to match a file name.

    • options: undefined | Options

      Options for the search.

    Returns ReturnType<typeof internalFindUp>

    The first path found that matches or undefined if none could be found.