anymatch
npmv3.1.3TypeScriptMatches strings against configurable strings, globs, regular expressions, and/or functions
Not recommended for new projects
No — anymatch should not be adopted for new projects. Last published 1388 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1388 days ago.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 110 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 5 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding anymatch to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing anymatch, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 8
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the anymatch README.
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 vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| anymatchthis page | 0 | 1 | ISC | 3 years ago |
| is-glob | 137.4M | 3 | MIT | 1 day ago |
| is-extglob | 0 | 1 | MIT | 1 day ago |
| escape-string-regexp | 316.5M | 8 | MIT | 1 day ago |
| is-regex | 75.1M | 1 | MIT | 1 day ago |
| globule | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by anymatch v3.1.3. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (2)
Used by
Popular packages that depend on anymatch.
Relationship graph
Dependencies (left) and dependents (right) of anymatch.
Frequently installed together
This packages is a collection of utilities and helper functions
This package contains shared types of Jest's packages.
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
TypeScript definitions for node
Module for executing heavy tasks under forked processes in parallel, by providing a `Promise` based interface, minimum overhead, and bound workers.
Convert Windows backslash paths to slash paths
No description provided.
A drop-in replacement for fs, making various improvements.
Bindings for the Watchman file watching service
A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
A simple directory tree walker.
Release history
No releases in the last two years, typically about 59 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.1.3latest | 3 years ago | 9.4 KB | ISC |
| 3.1.2 | 5 years ago | 9.3 KB | ISC |
| 3.1.1 | 7 years ago | 9.2 KB | ISC |
| 3.1.0 | 7 years ago | 9.2 KB | ISC |
| 3.0.3 | 7 years ago | 8.8 KB | ISC |
| 3.0.2 | 7 years ago | 8.7 KB | ISC |
| 3.0.1 | 7 years ago | 8.6 KB | ISC |
| 3.0.0 | 7 years ago | 8.6 KB | ISC |
| 2.0.0 | 8 years ago | — | ISC |
| 1.3.2 | 9 years ago | — | ISC |
| 1.3.0 | 11 years ago | — | ISC |
| 1.2.1 | 11 years ago | — | ISC |
| 1.2.0 | 11 years ago | — | ISC |
| 1.1.0 | 11 years ago | — | ISC |
| 1.0.0 | 12 years ago | — | ISC |
Overview
anymatch is an npm package that matches strings against configurable strings, globs, regular expressions, and/or functions. It has 1 known dependents in the graph. The latest version is 3.1.3, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need matches strings against configurable strings, globs, regular expressions, and/or functions and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (ISC).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use anymatch?
No — anymatch should not be adopted for new projects. Last published 1388 days ago.
How do I install anymatch?
Run `npm install anymatch` to add anymatch to your npm project.
How many dependencies does anymatch have?
anymatch declares 4 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 110 KB on disk.
What license is anymatch released under?
anymatch is distributed under the ISC license.
How popular is anymatch?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on anymatch.
Is anymatch still maintained?
The most recent release of anymatch (v3.1.3) was published 3 years ago.
Does anymatch run install scripts?
No. anymatch does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.