@types/parse-glob

  • Version 3.0.32
  • Published
  • 6.87 kB
  • No dependencies
  • MIT license

Install

npm i @types/parse-glob
yarn add @types/parse-glob
pnpm add @types/parse-glob

Overview

TypeScript definitions for parse-glob

Index

Variables

variable parseGlob

const parseGlob: ParseGlob;

    Interfaces

    interface Result

    interface Result {}

      property base

      base: string;
      • The non-glob part of the string, if any.

      property glob

      glob: string;
      • The glob pattern part of the string, if any.

      property is

      is: {
      /**
      * True if the pattern actually is a glob pattern.
      */
      glob: boolean;
      /**
      * True if it's a negation pattern (!/foo.js).
      */
      negated: boolean;
      /**
      * True if it has extglobs (@(foo|bar)).
      */
      extglob: boolean;
      /**
      * True if it has braces ({1..2} or .{txt,md}).
      */
      braces: boolean;
      /**
      * True if it has POSIX brackets ([[:alpha:]]).
      */
      brackets: boolean;
      /**
      * True if the pattern has a globstar (double star, **).
      */
      globstar: boolean;
      /**
      * True if the pattern should match dotfiles.
      */
      dotfile: boolean;
      /**
      * True if the pattern should match dot-directories (like .git).
      */
      dotdir: boolean;
      };
      • An object with boolean information about the glob.

      property orig

      orig: string;
      • A copy of the original, unmodified glob pattern.

      property path

      path: {
      /**
      * Directory.
      */
      dirname: string;
      /**
      * File name with extension.
      */
      basename: string;
      /**
      * File name without extension.
      */
      filename: string;
      /**
      * File extension with dot.
      */
      extname: string;
      /**
      * File extension without dot.
      */
      ext: string;
      };
      • File path segments.

      Package Files (1)

      Dependencies (0)

      No dependencies.

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/parse-glob.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/parse-glob)
      • HTML
        <a href="https://www.jsdocs.io/package/@types/parse-glob"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>