{"id":13814587,"url":"https://github.com/component/url","last_synced_at":"2025-08-15T03:32:59.494Z","repository":{"id":4581640,"uuid":"5723536","full_name":"component/url","owner":"component","description":"url parsing utility","archived":false,"fork":false,"pushed_at":"2015-06-18T10:22:54.000Z","size":195,"stargazers_count":47,"open_issues_count":4,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-19T09:47:57.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-07T23:07:29.000Z","updated_at":"2023-08-19T04:49:37.000Z","dependencies_parsed_at":"2022-07-07T22:23:33.056Z","dependency_job_id":null,"html_url":"https://github.com/component/url","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Furl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Furl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Furl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Furl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229890490,"owners_count":18140108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T04:02:20.030Z","updated_at":"2024-12-16T00:18:22.069Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# url\n\n  url parser.\n\n## Installation\n\n    $ component install component/url\n\n## Example\n\n```js\nvar url = require('url');\nurl.parse('http://example.com:3000/store/shoes?sort=desc');\n```\n\nyields:\n\n```js\n{\n  hash: \"\"\n  host: \"example.com:3000\"\n  port: 3000,\n  hostname: \"example.com\"\n  href: \"http://example.com:3000/store/shoes?sort=desc\"\n  pathname: \"/store/shoes\"\n  protocol: \"http:\"\n  query: \"sort=desc\"\n  search: \"?sort=desc\"\n}\n```\n\n## API\n\n### url.parse(string)\n\n  Parse the given url `string`.\n\n### url.isAbsolute(string)\n\n  Check if the given url `string` is absolute (has a scheme specified).\n\n### url.isRelative(string)\n\n  Check if the given url `string` is relative.\n\n### url.isCrossDomain(string)\n\n  Check if the given url `string` is cross-domain.\n\n## Note\n\n  This url \"parser\" uses an `\u003ca\u003e` tag, this means that when\n  a relative url is given, such as \"/foo\", it becomes relative\n  to the current domain / path, because the browser resolves it\n  as it normally would.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Furl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Furl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Furl/lists"}