</>PackageGraphPackageGraph

glob

npmv13.0.6TypeScript

the most correct and second fastest glob implementation in JavaScript

Adopt with care

glob is usable, with caveats.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 202 days ago. 13 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 6 transitive packages, about 2.6 MB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    BlueOak-1.0.0 — 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 glob to a project.

3
Direct dependencies

Runtime packages this one declares itself.

6
Total installed

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

2.6 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

BlueOak-1.0.0MIT

Every license you inherit by installing glob, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node 18 || 20 || >=22
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the glob README.

// load using import
import { glob, globSync, globStream, globStreamSync, Glob } from 'glob'
// or using commonjs, that's fine, too
const {
  glob,
  globSync,
  globStream,
  globStreamSync,
  Glob,
} = require('glob')

// the main glob() and globSync() resolve/return array of filenames

// all js files, but don't look in node_modules
Example truncated — see the full README.

Dependencies

Declared by glob v13.0.6. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (3)

Dev (9)

@types/node ^25.3.0esbuild ^0.27.3memfs ^4.50.0mkdirp ^3.0.1prettier ^3.6.2rimraf ^6.1.3tap ^21.6.1tshy ^3.3.2typedoc ^0.28.17

Used by

Popular packages that depend on glob.

eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
fast-globnpm

It's a very fast and efficient glob library for Node.js

135.1M/wk8 dependentsMITTS
rxjsnpm

Reactive Extensions for modern JavaScript

90.9M/wk6 dependentsApache-2.0TS
rolldownnpm

Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.

81.9M/wk8 dependentsMITTS
esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

77.6M/wk5 dependentsBSD-2-Clause
@jest/reportersnpm

Jest's reporters

43.2M/wk1 dependentsMITTS
reduxnpm

Predictable state container for JavaScript apps

30.2M/wk5 dependentsMITTS
drizzle-ormnpm

Drizzle ORM package for SQL databases

19M/wk0 dependentsApache-2.0TS
@expo/confignpm

A library for interacting with the app.json

9.1M/wk5 dependentsMITTS
mongoosenpm

Mongoose MongoDB ODM

6.1M/wk0 dependentsMITTS
node-sassnpm

Wrapper around libsass

888.4K/wk0 dependentsMITdeprecated
test-excludenpm

test for inclusion or exclusion of paths using globs

0/wk1 dependentsISC
nannpm

Native Abstractions for Node.js: C++ header for Node 0.8 -> 26 compatibility

0/wk2 dependentsMIT
@expo/metro-confignpm

A Metro config for running React Native projects with the Metro bundler

0/wk3 dependentsMITTS
@expo/config-pluginsnpm

A library for Expo config plugins

0/wk5 dependentsMITTS
@expo/clinpm

The Expo CLI

0/wk2 dependentsMIT
@expo/log-boxnpm

Error overlay for universal Expo apps.

0/wk4 dependentsMIT
@expo/fingerprintnpm

A library to generate a fingerprint from a React Native project

0/wk2 dependentsMITTS
image-sizenpm

get dimensions of any image file

0/wk1 dependentsMITTS
envinfonpm

Info about your dev environment for debugging purposes

0/wk2 dependentsMIT
sass-graphnpm

Parse sass files and extract a graph of imports

0/wk1 dependentsMIT
scss-tokenizernpm

A tokenzier for Sass' SCSS syntax

0/wk1 dependentsMIT
globulenpm

An easy-to-use wildcard globbing library.

0/wk1 dependentsMIT
qsnpm

A querystring parser that supports nesting and arrays, with a depth limit

0/wk4 dependentsBSD-3-Clause

Relationship graph

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

Frequently installed together

Release history

13 releases in the last two years, typically about 3 days apart.

Recent versions of glob
VersionPublishedSizeLicense
13.0.6latest6 months ago1.5 MBBlueOak-1.0.0
13.0.56 months ago1.5 MBBlueOak-1.0.0
13.0.46 months ago1.5 MBBlueOak-1.0.0
13.0.36 months ago1.5 MBBlueOak-1.0.0
13.0.27 months ago1.5 MBBlueOak-1.0.0
13.0.17 months ago436 KBBlueOak-1.0.0
13.0.09 months ago436 KBBlueOak-1.0.0
10.5.09 months ago471 KBISC
12.0.09 months ago473 KBBlueOak-1.0.0
11.1.09 months ago473 KBBlueOak-1.0.0
11.0.31 year ago464 KBISC
11.0.21 year ago464 KBISC
11.0.11 year ago464 KBISC
10.4.52 years ago464 KBISC
11.0.02 years ago464 KBISC

Overview

glob is an npm package that the most correct and second fastest glob implementation in JavaScript. It has 35 known dependents in the graph. The latest version is 13.0.6, released under the BlueOak-1.0.0 license.

Who should use it

Teams working in the npm ecosystem who need the most correct and second fastest glob implementation in JavaScript 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 (BlueOak-1.0.0).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Funding

Frequently asked questions

Should I use glob?

glob is usable, with caveats.

How do I install glob?

Run `npm install glob` to add glob to your npm project.

How many dependencies does glob have?

glob declares 12 direct dependencies and pulls in 6 packages in total once its runtime tree is resolved totalling about 2.6 MB on disk.

What license is glob released under?

glob is distributed under the BlueOak-1.0.0 license. Its dependency tree also includes: BlueOak-1.0.0, MIT.

How popular is glob?

npm does not publish download counts. Within PackageGraph's crawl, 35 known packages depend on glob.

Is glob still maintained?

The most recent release of glob (v13.0.6) was published 6 months ago.

Does glob run install scripts?

No. glob does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.