{"id":13567510,"url":"https://github.com/SixArm/uri-parser","last_synced_at":"2025-04-04T01:32:12.510Z","repository":{"id":137270569,"uuid":"51571902","full_name":"SixArm/uri-parser","owner":"SixArm","description":"Parse a URI or URL to its scheme, host, path, query, fragment, etc.","archived":false,"fork":false,"pushed_at":"2023-09-15T19:30:59.000Z","size":15,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T15:12:05.044Z","etag":null,"topics":["parse","script","shell","uri","url"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-12T06:59:50.000Z","updated_at":"2023-09-15T19:31:03.000Z","dependencies_parsed_at":"2024-08-01T13:39:40.002Z","dependency_job_id":null,"html_url":"https://github.com/SixArm/uri-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Furi-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Furi-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Furi-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Furi-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/uri-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107816,"owners_count":20884793,"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":["parse","script","shell","uri","url"],"created_at":"2024-08-01T13:02:33.342Z","updated_at":"2025-04-04T01:32:07.492Z","avatar_url":"https://github.com/SixArm.png","language":"Shell","readme":"# uri-parser:\u003cbr\u003eparse a URI to its parts\n\nSyntax:\n\n    uri-parser [options] \u003curi\u003e ...\n\nExamples:\n\n    $ uri-parser --host http://example.com/index.html\n    example.com\n\n    $ uri-parser --path http://example.com/index.html\n    /index.html\n\n## Options ##\n\nGeneral options:\n\n  * `-h`, `--help`: show help message\n  * `-V`, `--version`: show version message\n\nOutput options:\n\n  * `--uri`: the entire URI\n  * `--scheme`, `--protocol`: the scheme a.k.a. protocol, such as \"http\"\n  * `--authority`: the authority, such as \"alice:secret@www.example.com:80\"\n  * `--userinfo`: the username and password, such as \"alice:secret\"\n  * `--username`: the username, such as \"alice\"\n  * `--password`: the password, such as \"secret\"\n  * `--hostinfo`: the host and port, such as \"www.example.com:80\"\n  * `--host`: the host, such as \"www.example.com\"\n  * `--port`: the port, such as \"80\"\n  * `--path`: the path, such as \"/a/b/c/index.html?key=val#123\"\n  * `--dirname`: the path directory name, such as \"/a/b/c\"\n  * `--basename`: the path base name, such as \"index.html\"\n  * `--query`: the query, such as \"key=val\"\n  * `--fragment`, `--anchor`: the fragment a.k.a. anchor, such as an id\n  * `--hierarchy`: the hierarchical part, which is the authority and path\n  * `--holarchy`: the non-hierarchical part, which is the query and fragment\n  * `--tld`: the TLD a.ka. top level domain, such as \"com\"\n  * `--connection`: the connection URI, such as \"http://alice:secret@www.example.com:80\"\n  * `--favicon`: the probable favicon URL, such as \"http://www.example.com/favicon.ico\"\n  * `--defragment`: the entire URI except the fragment\n\n## URI Scheme Details ##\n\nEvery URI is made of parts.\n\n  * The parts are described in the URI RFC specification.\n  * There is a summary at http://en.wikipedia.org/wiki/URI_scheme\n  * This script adds some custom part names, such as \"dirname\" and \"basename\".\n\nExample:\n\n    http://www.example.com/index.html\n    └─┬─┘  └──────┬──────┘ └───┬────┘\n    scheme       host         path\n\nExample with more parts:\n\n    http://elizabeth:opensesame@www.example.com:10000/aa/bb/cc/index.html?key=val#identifier\n    └─┬─┘  └───┬───┘ └───┬────┘ └──────┬──────┘└─┬──┘└─────────┬────────┘ └──┬──┘ └───┬────┘\n    scheme  username  password        host      port          path          query   fragment\n           └─────────┬────────┘ └─────────┬─────────┘└──────────────────┬──────────────────┘\n                  userinfo             hostinfo                      pathinfo\n           └───────────────────┬────────────────────┘\n                           authority\n           └───────────────────────────────┬────────────────────────────┘ └───────┬────────┘\n                                        hierarchy                              holarchy\n\nThe host part may have a top level domain part:\n\n                 host\n           ┌──────┴──────┐\n    http://www.example.com\n                       └┬┘\n                       tld\n\nThe path part may have a directory name and a base name:\n\n                                  path\n                          ┌────────┴─────────┐\n    http://www.example.com/aa/bb/cc/index.html\n                          └───┬───┘ └───┬────┘\n                            dirname  basename\n\nThe `--defragment` option transforms the URI by deleting any fragment part and hash character:\n\n    http://www.example.com/example.html#identifier\n                                       └────┬────┘\n                                        defragment deletes this\n\nThe `--connection` option gets the scheme and authority, and is typically suitable for making a network connection:\n\n    http://www.example.com/aa/bb/cc/index.html\n    └─────────┬──────────┘\n          connection\n\nThe `--favicon` option transforms the URI by using the connection part then appending the typical file name `favicon.ico`:\n\n    http://www.example.com/favicon.ico\n    └────────────────┬───────────────┘\n                   favicon\n\nSynonyms:\n\n  * scheme, protocol\n  * fragment, fragment id, anchor, anchor name\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSixArm%2Furi-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSixArm%2Furi-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSixArm%2Furi-parser/lists"}