Class Pattern

An immutable-ish view on an array of glob parts and their parsed results

Constructors

Properties

length: number

Methods

  • Check to see if the current globstar pattern is allowed to follow a symbolic link.

    Returns boolean

  • The /-joined set of glob parts that make up this pattern

    Returns string

  • true if there are more pattern parts after this one

    Returns boolean

  • True if the pattern is rooted on an absolute path

    Returns boolean

  • True if the pattern starts with a drive letter on Windows

    Returns boolean

  • true of if pattern() returns GLOBSTAR

    Returns boolean

  • true if pattern() returns a regexp

    Returns boolean

  • true of if pattern() returns a string

    Returns boolean

  • true if the pattern represents a //unc/path/ on windows

    Returns boolean

  • Mark that the current globstar pattern is following a symbolic link

    Returns boolean

  • consume the root of the pattern, and return it

    Returns string