url-parse-as-address
Parse a url assuming http
if no protocol or //
is provided.
Useful for parsing things like foo.com
and not interpreting it as a
path.
USAGE
var parse = var assert = assert assert // etc
By default this lib assumes http:
is the protocol if none is
provided, because that's what web browsers do.
API
-
parse(url, parseQueryString)
Parse a string to object. -
parse.parse(..)
Same function, for symmetry tourl
builtin -
parse.format(url)
Likeurl.format()