[](https://travis-ci.org/defunctzombie/node-url)
This module has utilities for URL resolution and parsing meant to have feature parity with node.js core [url](http://nodejs.org/api/url.html) module.
var url = require('url');
Parsed URL objects have some or all of the following fields, depending on
whether or not they exist in the URL string. Any parts that are not in the URL
string will not be in the parsed object. Examples are shown for the URL
`'http://user:pass@host.com:8080/p/a/t/h?query=string#hash'`
* `href`: The full URL that was originally parsed. Both the protocol and host are lowercased.
Example: `'http://user:pass@host.com:8080/p/a/t/h?query=string#hash'`
* `protocol`: The request protocol, lowercased.
* `host`: The full lowercased host portion of the URL, including port
Example: `'host.com:8080'`
* `auth`: The authentication information portion of a URL.
* `hostname`: Just the lowercased hostname portion of the host.
* `port`: The port number portion of the host.