is-glob
npmv4.0.3Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Not recommended for new projects
No — is-glob should not be adopted for new projects. Last published 1806 days ago.
- AAdoption: grade A, Excellent.
137.4M downloads per week and 3 known dependents.
- FMaintenance: grade F, Failing.
Last published 1806 days ago.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 13 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — 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 is-glob 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 is-glob, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=0.10.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the is-glob README.
var isGlob = require('is-glob');is-glob 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 |
|---|---|---|---|---|
| is-globthis page | 137.4M | 3 | MIT | 5 years ago |
| is-extglob | 0 | 1 | MIT | 1 day ago |
| anymatch | 0 | 1 | ISC | 1 day ago |
| escape-string-regexp | 316.5M | 8 | MIT | 1 day ago |
| is-regex | 75.1M | 1 | MIT | 1 day ago |
| is-wsl | 117.6M | 4 | MIT | 1 day ago |
Dependencies
Declared by is-glob v4.0.3. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (2)
Used by
Popular packages that depend on is-glob.
An AST-based pattern checker for JavaScript.
A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.
Extract the non-magic parent path from a glob string.
Relationship graph
Dependencies (left) and dependents (right) of is-glob.
Frequently installed together
Runtime typescript and ESM support for Node.js
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Constants and utilities about visitor keys to traverse AST.
Escape RegExp special characters
TypeScript definitions for estree
A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run
Helper utilities for creating ESLint configuration
ECMAScript parsing infrastructure for multipurpose analysis
deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
Release history
No releases in the last two years, typically about 35 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.3latest | 5 years ago | 13 KB | MIT |
| 4.0.2 | 5 years ago | 13 KB | MIT |
| 4.0.1 | 7 years ago | 11 KB | MIT |
| 4.0.0 | 9 years ago | — | MIT |
| 3.1.0 | 10 years ago | — | MIT |
| 3.0.0 | 10 years ago | — | MIT |
| 2.0.1 | 11 years ago | — | MIT |
| 2.0.0 | 11 years ago | — | MIT |
| 1.1.3 | 11 years ago | — | MIT |
| 1.1.2 | 11 years ago | — | MIT |
| 1.1.1 | 11 years ago | — | MIT |
| 1.1.0 | 11 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
| 0.3.0 | 11 years ago | — | MIT |
| 0.2.0 | 11 years ago | — | MIT |
Overview
is-glob is an npm package that returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet. It is extremely widely used, with about 137.4M downloads per week and 3 known dependents in the graph. The latest version is 4.0.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (137.4M weekly downloads).
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use is-glob?
No — is-glob should not be adopted for new projects. Last published 1806 days ago.
How do I install is-glob?
Run `npm install is-glob` to add is-glob to your npm project.
How many dependencies does is-glob have?
is-glob declares 3 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 13 KB on disk.
What license is is-glob released under?
is-glob is distributed under the MIT license.
How popular is is-glob?
is-glob has approximately 137,434,232 downloads per week and 3 known dependent packages.
Is is-glob still maintained?
The most recent release of is-glob (v4.0.3) was published 5 years ago.
Does is-glob run install scripts?
No. is-glob does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.