Utility class for matching file paths.

Hierarchy

  • default

Constructors

Methods

Constructors

Methods

  • Matches file paths based on the provided source pattern and optional exclude pattern.

    Parameters

    • sourcePattern: string

      The source pattern for matching files.

    • Optional cb: ((error, result) => void)

      The callback function to handle the result or error.

        • (error, result): void
        • Parameters

          • error: Error
          • result: string[]

          Returns void

    • Optional excludePattern: RegExp

      The optional regular expression pattern to exclude paths.

    Returns Promise<string[]>

    A promise that resolves to void.

Created by CodeAuthor1 Twitter