-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
> const nurl = new NURL('https://google.com')
> nurl
c {
_href: 'https://google.com/',
_protocol: 'https:',
_host: 'google.com',
_hostname: 'google.com',
_port: '',
_pathname: '/',
_search: '',
_hash: '',
_origin: 'https://google.com',
_username: '',
_password: '',
_baseUrl: '',
_searchParams: URLSearchParams {},
punycodePrefix: 'xn--'
}
> const url = new URL('https://google.com')
> url
URL {
href: 'https://google.com/',
origin: 'https://google.com',
protocol: 'https:',
username: '',
password: '',
host: 'google.com',
hostname: 'google.com',
port: '',
pathname: '/',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
>Metadata
Metadata
Assignees
Labels
No labels