Skip to main content

globUtils

Index

Type Aliases

Glob

Glob: { isGlobPattern: (pattern: string) => boolean; match: (pattern: string, options: { baseFs: FakeFS<PortablePath>; cwd: PortablePath }) => Promise<string[]> }

Type declaration

Variables

constfastGlobOptions

fastGlobOptions: fastGlob.Options = ...

constmicromatchOptions

micromatchOptions: micromatch.Options = ...

Functions

isBraceExpansion

  • isBraceExpansion(pattern: string): boolean
  • Parameters

    • pattern: string

    Returns boolean

isGlobPattern

  • isGlobPattern(pattern: string): boolean
  • Decides whether a string is a glob pattern, using micromatch.

    Required because fastGlob.isDynamicPattern doesn’t have the strictBrackets option.


    Parameters

    • pattern: string

    Returns boolean

match