Parse URL
Parse a URL into its components
Demos & Screenshots
No screenshots provided yet. Have some video demos or screenshots of this
brick
in the wild?
Send them over to
[email protected]!
Inputs
Name | Required | Type | Description |
---|---|---|---|
url |
string
|
An absolute or relative URL | |
base |
string
|
The base URL to use in cases where the url is a relative URL |
Outputs
Name | Required | Type | Description |
---|---|---|---|
hash |
string
|
||
host |
string
|
||
port |
string
|
||
origin |
string
|
||
search |
string
|
||
hostname |
string
|
||
password |
string
|
||
pathname |
string
|
||
protocol |
string
|
||
username |
string
|
||
publicSuffix |
string
|
Public suffix (see https://publicsuffix.org/) | |
searchParams |
object
|
Details
ID | @pixiebrix/parse-url |
---|---|
Author |
@pixiebrix
|
Version | 1.7.0 |
Created | Aug. 17, 2021 |
Updated | May 26, 2022 |