Skip to content

improve property names (vs URL) #58

@yongholeeme

Description

@yongholeeme
> 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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions