Packages
Preparing search index...
@mcansh/url
UrlBuilder
Class UrlBuilder
Index
Constructors
constructor
Accessors
href
Methods
build
domain
hash
param
password
path
port
protocol
remove
Leading
Trailing
Slashes
to
URL
username
Constructors
constructor
new
UrlBuilder
()
:
UrlBuilder
Returns
UrlBuilder
Accessors
href
get
href
()
:
string
Returns
string
Methods
build
build
()
:
string
Returns
string
domain
domain
(
domain
:
string
)
:
Omit
<
this
,
"domain"
>
Parameters
domain
:
string
Returns
Omit
<
this
,
"domain"
>
hash
hash
(
hash
:
string
)
:
this
Parameters
hash
:
string
Returns
this
param
param
(
key
:
string
,
value
:
undefined
|
string
|
number
|
boolean
)
:
this
Parameters
key
:
string
value
:
undefined
|
string
|
number
|
boolean
Returns
this
password
password
(
password
:
string
)
:
Omit
<
this
,
"password"
>
Parameters
password
:
string
Returns
Omit
<
this
,
"password"
>
path
path
(
path
:
string
)
:
Omit
<
this
,
"path"
>
Parameters
path
:
string
Returns
Omit
<
this
,
"path"
>
port
port
(
port
:
number
)
:
Omit
<
this
,
"port"
>
Parameters
port
:
number
Returns
Omit
<
this
,
"port"
>
protocol
protocol
(
protocol
:
string
)
:
Omit
<
this
,
"protocol"
>
Parameters
protocol
:
string
Returns
Omit
<
this
,
"protocol"
>
remove
Leading
Trailing
Slashes
removeLeadingTrailingSlashes
(
input
:
string
)
:
string
Parameters
input
:
string
Returns
string
to
URL
toURL
()
:
URL
Returns
URL
username
username
(
username
:
string
)
:
Omit
<
this
,
"username"
>
Parameters
username
:
string
Returns
Omit
<
this
,
"username"
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
href
Methods
build
domain
hash
param
password
path
port
protocol
remove
Leading
Trailing
Slashes
to
URL
username
Packages
Loading...