anymatch

  • Version 3.1.2
  • Published
  • 9.54 kB
  • 2 dependencies
  • ISC license

Install

npm i anymatch
yarn add anymatch
pnpm add anymatch

Overview

Matches strings against configurable strings, globs, regular expressions, and/or functions

Index

Variables

Type Aliases

Variables

variable anymatch

const anymatch: {
(matchers: AnymatchMatcher): AnymatchTester;
(
matchers: AnymatchMatcher,
testString: string | any[],
returnIndex: true | PicomatchOptions
): number;
(matchers: AnymatchMatcher, testString: string | any[]): boolean;
};

    Type Aliases

    type Matcher

    type AnymatchMatcher = AnymatchPattern | AnymatchPattern[];

      type Tester

      type AnymatchTester = {
      (testString: string | any[], returnIndex: true): number;
      (testString: string | any[]): boolean;
      };

        Package Files (1)

        Dependencies (2)

        Dev Dependencies (2)

        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/anymatch.

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