$ node
> url.resolveObject('http://example.com:81', 'http://example.com:82');
Url {
protocol: 'http:',
slashes: true,
auth: null,
host: 'example.com:82',
port: '81',
hostname: 'example.com',
hash: null,
search: null,
query: null,
pathname: '/',
path: '/',
href: 'http://example.com:82/' }
>
host: 'example.com:82',
port: '81',