@mikeyt23/node-cli-utils
    Preparing search index...

    Function findFilesRecursively

    • Searches a directory recursively for files that match the specified pattern. The filenamePattern is a simple text string with asterisks (*) for wildcards.

      Parameters

      • dir: string

        The directory to find files in

      • filenamePattern: string

        The pattern to match files against

      • Optionaloptions: Partial<FindFilesOptions>

        Specify a max depth to search, defaults to 5

      Returns Promise<string[]>

      A Promise that resolves to an array of file paths that match the pattern