Options
All
  • Public
  • Public/Protected
  • All
Menu

Module M

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): (element: string, indexed: number, array: ReadonlyArray<string>) => boolean
  • Returns a function that tests its supplied argument, suitable for use with Array.filter

    Parameters

    • pattern: string
    • Optional options: IOptions

    Returns (element: string, indexed: number, array: ReadonlyArray<string>) => boolean

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

        Returns boolean

makeRe

  • Make a regular expression object from the pattern.

    Parameters

    • pattern: string
    • Optional options: IOptions

    Returns RegExp

match

  • 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

    Returns string[]