Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via pnpm

anymatch 1.2.1

Matches strings against configurable strings, globs, regular expressions, and/or functions
Package summary
Share
3
issues
1
high severity
vulnerability
1
2
low severity
vulnerability
2
2
licenses
37
MIT
3
ISC
Package created
25 Nov 2013
Version published
27 Mar 2015
Maintainers
5
Total deps
40
Direct deps
2
License
ISC

Issues

3

1 high severity issue

high
Recommendation: Upgrade to version 5.1.2 or later
via: micromatch@2.3.11
Collapse
Expand

2 low severity issues

low
Recommendation: Upgrade to version 2.3.1 or later
via: micromatch@2.3.11
Recommendation: Upgrade to version 2.3.1 or later
via: micromatch@2.3.11
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
37 Packages, Including:
arr-diff@2.0.0
arr-flatten@1.1.0
array-unique@0.2.1
arrify@1.0.1
braces@1.8.5
expand-brackets@0.1.5
expand-range@1.8.2
extglob@0.3.2
filename-regex@2.0.1
fill-range@2.2.4
for-in@1.0.2
for-own@0.1.5
glob-base@0.3.0
is-buffer@1.1.6
is-dotfile@1.0.3
is-equal-shallow@0.1.3
is-extendable@0.1.1
is-extglob@1.0.0
is-glob@2.0.1
is-number@2.1.0
is-number@4.0.0
is-posix-bracket@0.1.1
is-primitive@2.0.0
isarray@1.0.0
isobject@2.1.0
kind-of@3.2.2
kind-of@6.0.3
math-random@1.0.4
micromatch@2.3.11
normalize-path@2.1.1
object.omit@2.0.1
parse-glob@3.0.4
preserve@0.2.0
randomatic@3.1.1
regex-cache@0.4.4
repeat-element@1.1.4
repeat-string@1.6.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
anymatch@1.2.1
glob-parent@2.0.0
remove-trailing-separator@1.1.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of anymatch 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
arrify1.0.11.42 kBMIT
prod
micromatch2.3.1114.28 kBMIT
prod
1
2

Visualizations

Frequently Asked Questions

What does anymatch do?

Anymatch is a useful JavaScript module designed to facilitate string matching against configurable strings, globs, regular expressions, or functions. With a particular emphasis on file paths, its functionality plays an integral role in allowing user-configurable designs that are flexibly designed. Anymatch accomplishes its objectives by directly matching a string, using a string with glob patterns, conducting regular expression tests, or through a function that takes test string as an argument and returns a truthy value if a match should be made.

How do you use anymatch?

To use Anymatch, you begin by installing it via npm using the command npm install anymatch. After installation, it can be used by invoking the anymatch function and passing in the matchers and testString.

Here's a quick code example:

const anymatch = require('anymatch');

const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ;

anymatch(matchers, 'path/to/file.js'); // true
anymatch(matchers, 'path/anyjs/baz.js'); // true
anymatch(matchers, 'path/to/foo.js'); // true
anymatch(matchers, 'path/to/bar.js'); // true
anymatch(matchers, 'bar.js'); // false

// returnIndex = true
anymatch(matchers, 'foo.js', {returnIndex: true}); // 2
anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1

Anymatch also supports curried functions, providing a function that is already bound to the provided matching criteria.

Where are the anymatch docs?

The details and documentation on how to use Anymatch can be found on its GitHub page at https://github.com/micromatch/anymatch. These docs provide a comprehensive guide on how to use Anymatch, covering all the parameters and options, and also illustrating examples on how to best utilize this JavaScript module.