Skip to content
JS
Package

global-prefix

Get the npm global path prefix.

v4.0.0, 17 Aug 2024MITCommonJSTypes: NoneFiles and file systemsNode.js utilities
$ npm install global-prefix

Key numbers

As of 25 Sept 2026
Weekly downloads
24.9m
+26% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
2 years ago
v4.0.0
GitHub stars
29
12 forks
Open issues / PRs
5 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 32.3m (25 Aug 2026)Low 11.1m (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.

24,889,477 downloads last week, 115,342,087 in the last month. The 12-month change of +26% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
4.0.0, 17 Aug 20242 years ago
First published
28 Feb 2015
Last push to GitHub
17 Aug 2024768 days before the snapshot
Repository archived
No
Open issues
5
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
507

Major versions

  1. v4 first release 4.0.0, 17 Aug 2024
  2. v3 first release 3.0.0, 15 Dec 2018
  3. v1 first release 1.0.0, 28 Jun 2017
  4. v0 first release 0.1.0, 28 Feb 2015

Recent releases

VersionPublished
4.0.017 Aug 2024
3.0.015 Dec 2018
1.0.26 Aug 2017
1.0.128 Jun 2017
1.0.028 Jun 2017
0.1.530 Nov 2016
0.1.45 Jun 2016
0.1.37 Apr 2016
0.1.213 Mar 2016
0.1.116 Jul 2015
0.1.028 Feb 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=16
Runtimes
-
Unpacked size (npm)
7.9 kB
Dependencies (3)
iniwhichkind-of
npm install global-prefix
  • jsDelivrhttps://cdn.jsdelivr.net/npm/global-prefix@4.0.0/
  • unpkghttps://unpkg.com/global-prefix@4.0.0/
  • esm.shhttps://esm.sh/global-prefix@4.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
path-complete-extname322.1k-8 years agoCommonJS-
get-installed-path404.3k-8 years agoESM + CommonJS-
@stdlib/fs-resolve-parent-path542k-7 months agoCommonJS-
@stdlib/fs-read-file345k-7 months agoCommonJS-
@stdlib/fs-exists542k-7 months agoCommonJS-
ignore237.8m-2 days ago--
multiparty733.1k-14 days ago--
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.