</>PackageGraphPackageGraph

is-glob

npmv4.0.3

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

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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

13 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
is-globthis page137.4M3MIT5 years ago
is-extglob01MIT1 day ago
anymatch01ISC1 day ago
escape-string-regexp316.5M8MIT1 day ago
is-regex75.1M1MIT1 day ago
is-wsl117.6M4MIT1 day ago

Dependencies

Declared by is-glob v4.0.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

gulp-format-md ^0.1.10mocha ^3.0.2

Used by

Popular packages that depend on is-glob.

Relationship graph

Dependencies (left) and dependents (right) of is-glob.

Frequently installed together

jitinpm

Runtime typescript and ESM support for Node.js

0/wk15 dependentsMITTS
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
prettiernpm

Prettier is an opinionated code formatter

114.2M/wk159 dependentsMITTS
eslint-visitor-keysnpm

Constants and utilities about visitor keys to traverse AST.

340.8M/wk4 dependentsApache-2.0TS
escape-string-regexpnpm

Escape RegExp special characters

316.5M/wk8 dependentsMIT
@types/estreenpm

TypeScript definitions for estree

152.1M/wk12 dependentsMITTS
file-entry-cachenpm

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

134.5M/wk1 dependentsMITTS
@eslint/config-helpersnpm

Helper utilities for creating ESLint configuration

96M/wk1 dependentsApache-2.0TS
esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

77.6M/wk5 dependentsBSD-2-Clause
json-stable-stringify-without-jsonifynpm

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

72.1M/wk1 dependentsMIT
webpacknpm

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.

49.8M/wk29 dependentsMITTS
cheerionpm

The fast, flexible & elegant library for parsing and manipulating HTML and XML.

24.1M/wk5 dependentsMITTS

Release history

No releases in the last two years, typically about 35 days apart.

Recent versions of is-glob
VersionPublishedSizeLicense
4.0.3latest5 years ago13 KBMIT
4.0.25 years ago13 KBMIT
4.0.17 years ago11 KBMIT
4.0.09 years agoMIT
3.1.010 years agoMIT
3.0.010 years agoMIT
2.0.111 years agoMIT
2.0.011 years agoMIT
1.1.311 years agoMIT
1.1.211 years agoMIT
1.1.111 years agoMIT
1.1.011 years agoMIT
1.0.011 years agoMIT
0.3.011 years agoMIT
0.2.011 years agoMIT

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

Keywords

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.