Package
is-relative-url
Check if a URL is relative
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 555.2k
- +18% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 10 days ago
- v4.1.1
- GitHub stars
- 26
- 7 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 4
Downloads
Last week 2026-09-15 to 2026-09-21
555,165 downloads last week, 2,491,194 in the last month. The 12-month change of +18% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 18 in total
- Latest version
- 4.1.1, 14 Sept 202610 days ago
- First published
- 4 Jul 2014
- Last push to GitHub
- 18 Sept 20266 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 4
- Dependents on npm
- 146
Major versions
- v4 first release 4.0.0, 6 Jun 2022
- v3 first release 3.0.0, 6 Apr 2019
- v2 first release 2.0.0, 14 Nov 2015
- v1 first release 1.0.0, 13 Aug 2014
- v0 first release 0.1.0, 4 Jul 2014
Recent releases
| Version | Published |
|---|---|
| 4.1.1 | 14 Sept 2026 |
| 4.1.0 | 10 Sept 2025 |
| 4.0.0 | 6 Jun 2022 |
| 3.0.0 | 6 Apr 2019 |
| 2.0.0 | 14 Nov 2015 |
| 1.0.0 | 13 Aug 2014 |
| 0.1.1 | 5 Jul 2014 |
| 0.1.0 | 4 Jul 2014 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=14.16
- Runtimes
- -
- Unpacked size (npm)
- 5.4 kB
- Dependencies (1)
is-absolute-url
npm install is-relative-url- jsDelivr
https://cdn.jsdelivr.net/npm/is-relative-url@4.1.1/ - unpkg
https://unpkg.com/is-relative-url@4.1.1/ - esm.sh
https://esm.sh/is-relative-url@4.1.1
Indexability: Indexed.