url.parse(urlStr, [parseQueryString], [slashesDenoteHost])# Take a URL string, and return an object.
Pass true as the second argument to also parse the query string using the querystring module. Defaults to false.
Pass true as the third argument to treat //foo/bar as { host: 'foo’, pathname: ‘/bar’ } rather than { pathname: ‘//foo/bar’ }. Defaults to false.