Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • M(target: string, pattern: string, options?: IOptions): boolean
  • Tests a path against the pattern using the options.

    Parameters

    • target: string
    • pattern: string
    • Optional options: IOptions

    Returns boolean

Index

Variables

Let Minimatch

Minimatch: IMinimatchStatic

Functions

filter

  • filter(pattern: string, options?: IOptions): function
  • Returns a function that tests its supplied argument, suitable for use with Array.filter

    Parameters

    • pattern: string
    • Optional options: IOptions

    Returns function

      • (element: string, indexed: number, array: ReadonlyArray<string>): boolean
      • Parameters

        • element: string
        • indexed: number
        • array: ReadonlyArray<string>

        Returns boolean

makeRe

  • makeRe(pattern: string, options?: IOptions): RegExp
  • Make a regular expression object from the pattern.

    Parameters

    • pattern: string
    • Optional options: IOptions

    Returns RegExp

match

  • match(list: ReadonlyArray<string>, pattern: string, options?: IOptions): string[]
  • Match against the list of files, in the style of fnmatch or glob. If nothing is matched, and options.nonull is set, then return a list containing the pattern itself.

    Parameters

    • list: ReadonlyArray<string>
    • pattern: string
    • Optional options: IOptions

    Returns string[]

Generated using TypeDoc