ale-url-parser icon indicating copy to clipboard operation
ale-url-parser copied to clipboard

Change property names

Open msn0 opened this issue 7 years ago • 0 comments

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'
}

msn0 avatar Jan 02 '18 09:01 msn0