Gathering detailed insights and metrics for @jridgewell/resolve-uri
Gathering detailed insights and metrics for @jridgewell/resolve-uri
Gathering detailed insights and metrics for @jridgewell/resolve-uri
Gathering detailed insights and metrics for @jridgewell/resolve-uri
Resolve a URI relative to an optional base URI
npm install @jridgewell/resolve-uri
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.6
Supply Chain
79.7
Quality
75.8
Maintenance
100
Vulnerability
100
License
JavaScript (99.62%)
TypeScript (0.38%)
Total Downloads
5,777,091,835
Last Day
3,345,858
Last Week
55,052,389
Last Month
237,829,592
Last Year
2,463,178,190
MIT License
11 Stars
152 Commits
5 Forks
2 Watchers
16 Branches
3 Contributors
Updated on Feb 28, 2024
Minified
Minified + Gzipped
Latest Version
3.1.2
Package Id
@jridgewell/resolve-uri@3.1.2
Unpacked Size
51.91 kB
Size
9.40 kB
File Count
8
NPM Version
10.2.3
Node Version
20.10.0
Published on
Feb 14, 2024
Cumulative downloads
Total Downloads
Last Day
-8.3%
3,345,858
Compared to previous day
Last Week
-7.5%
55,052,389
Compared to previous week
Last Month
0.6%
237,829,592
Compared to previous month
Last Year
31.2%
2,463,178,190
Compared to previous year
Resolve a URI relative to an optional base URI
Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths.
1npm install @jridgewell/resolve-uri
1function resolve(input: string, base?: string): string;
1import resolve from '@jridgewell/resolve-uri'; 2 3resolve('foo', 'https://example.com'); // => 'https://example.com/foo'
Input | Base | Resolution | Explanation |
---|---|---|---|
https://example.com | any | https://example.com/ | Input is normalized only |
//example.com | https://base.com/ | https://example.com/ | Input inherits the base's protocol |
//example.com | rest | //example.com/ | Input is normalized only |
/example | https://base.com/ | https://base.com/example | Input inherits the base's origin |
/example | //base.com/ | //base.com/example | Input inherits the base's host and remains protocol relative |
/example | rest | /example | Input is normalized only |
example | https://base.com/dir/ | https://base.com/dir/example | Input is joined with the base |
example | https://base.com/file | https://base.com/example | Input is joined with the base without its file |
example | //base.com/dir/ | //base.com/dir/example | Input is joined with the base's last directory |
example | //base.com/file | //base.com/example | Input is joined with the base without its file |
example | /base/dir/ | /base/dir/example | Input is joined with the base's last directory |
example | /base/file | /base/example | Input is joined with the base without its file |
example | base/dir/ | base/dir/example | Input is joined with the base's last directory |
example | base/file | base/example | Input is joined with the base without its file |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Found 1/26 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More