Skip to content
JS
Package

glob-parent

Extract the non-magic parent path from a glob string.

v6.0.2, 29 Sept 2021ISCCommonJSTypes: NoneFiles and file systems
$ npm install glob-parent

Key numbers

As of 25 Sept 2026
Weekly downloads
248.9m
+90% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
4 years ago
v6.0.2
GitHub stars
82
51 forks
Open issues / PRs
3 / 1
Contributors
10
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0100m200m300m400mSept 2025Mar 2026Sept 2026High 324m (18 Aug 2026)Low 86.7m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

248,932,187 downloads last week, 1,179,893,810 in the last month. The 12-month change of +90% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
016 in total
Latest version
6.0.2, 29 Sept 20214 years ago
First published
12 Jan 2015
Last push to GitHub
26 Jul 2024790 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
2,578

Major versions

  1. v6 first release 6.0.0, 3 May 2021
  2. v5 first release 5.0.0, 29 Mar 2019
  3. v4 first release 4.0.0, 27 Mar 2019
  4. v3 first release 3.0.0, 6 Sept 2016
  5. v2 first release 2.0.0, 18 Sept 2015
  6. v1 first release 1.0.0, 12 Jan 2015

Recent releases

VersionPublished
6.0.229 Sept 2021
6.0.120 Jul 2021
6.0.03 May 2021
5.1.26 Mar 2021
5.1.121 Mar 2020
5.1.021 Sept 2019
5.0.029 Mar 2019
4.0.027 Mar 2019
3.1.014 Dec 2016
3.0.118 Oct 2016
3.0.06 Sept 2016
2.0.018 Sept 2015
1.3.018 Sept 2015
1.2.04 Mar 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=10.13.0
Runtimes
-
Unpacked size (npm)
7.5 kB
Dependencies (1)
is-glob
npm install glob-parent
  • jsDelivrhttps://cdn.jsdelivr.net/npm/glob-parent@6.0.2/
  • unpkghttps://unpkg.com/glob-parent@6.0.2/
  • esm.shhttps://esm.sh/glob-parent@6.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.