Skip to content

Change property names #10

@msn0

Description

@msn0

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions