Class: URI

URI

new URI()

Source:
Example
uri(window.location.href).getQuery('page')
uri.parse('http://www.google.de?q=search').getQuery('q')

Methods

getQuery(key)

gets a query value by key

Parameters:
Name Type Description
key String

to get from query string

Source:

join(options)

joins parsed uri parts to generate full path

Parameters:
Name Type Description
options Array

which parts should be included (includes all parts by default):

  • "protocol"
  • "domain"
  • "port"
  • "path"
  • "query"
  • "hash"
Source:

uri()

shorthand function to call new URI(path)

Source: