Package
global-prefix
Get the npm global path 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
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
- v4 first release 4.0.0, 17 Aug 2024
- v3 first release 3.0.0, 15 Dec 2018
- v1 first release 1.0.0, 28 Jun 2017
- v0 first release 0.1.0, 28 Feb 2015
Recent releases
| Version | Published |
|---|---|
| 4.0.0 | 17 Aug 2024 |
| 3.0.0 | 15 Dec 2018 |
| 1.0.2 | 6 Aug 2017 |
| 1.0.1 | 28 Jun 2017 |
| 1.0.0 | 28 Jun 2017 |
| 0.1.5 | 30 Nov 2016 |
| 0.1.4 | 5 Jun 2016 |
| 0.1.3 | 7 Apr 2016 |
| 0.1.2 | 13 Mar 2016 |
| 0.1.1 | 16 Jul 2015 |
| 0.1.0 | 28 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- jsDelivr
https://cdn.jsdelivr.net/npm/global-prefix@4.0.0/ - unpkg
https://unpkg.com/global-prefix@4.0.0/ - esm.sh
https://esm.sh/global-prefix@4.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| path-complete-extname | 322.1k | - | 8 years ago | CommonJS | - |
| get-installed-path | 404.3k | - | 8 years ago | ESM + CommonJS | - |
| @stdlib/fs-resolve-parent-path | 542k | - | 7 months ago | CommonJS | - |
| @stdlib/fs-read-file | 345k | - | 7 months ago | CommonJS | - |
| @stdlib/fs-exists | 542k | - | 7 months ago | CommonJS | - |
| ignore | 237.8m | - | 2 days ago | - | - |
| multiparty | 733.1k | - | 14 days ago | - | - |
Indexability: Indexed.