new AtomUri(url)

We often need good Uri parser in JavaScript so we have shipped one.

Properties

Scheme of given URL

Domain name of given url (does not include port number)

Port of given url address

File path of url

Key-value pair of query string, values are parsed into relevant types, true/false are converted into native boolean and number is converted to native number.

Key-value pair of hash, values are parsed into relevant types, true/false are converted into native boolean and number is converted to native number.

Example