ale-url-parser
ale-url-parser copied to clipboard
Change property names
Change host to hostname and path to pathname to make it more compatible with https://nodejs.org/api/url.html
Here's what require('url').parse returns:
{
protocol: 'https:',
slashes: true,
auth: null,
host: 'aaa.com:34567',
port: '34567',
hostname: 'aaa.com',
hash: null,
search: '?baz',
query: 'baz',
pathname: '/foo/bar',
path: '/foo/bar?baz',
href: 'https://aaa.com:34567/foo/bar?baz'
}