{"id":16838597,"url":"https://github.com/jordan-wright/purl","last_synced_at":"2025-04-11T05:20:26.126Z","repository":{"id":57601356,"uuid":"139261756","full_name":"jordan-wright/purl","owner":"jordan-wright","description":"A command-line URL parser","archived":false,"fork":false,"pushed_at":"2018-07-02T03:35:32.000Z","size":9,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:23:25.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jordan-wright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-30T16:01:47.000Z","updated_at":"2024-06-23T15:59:30.000Z","dependencies_parsed_at":"2022-09-26T20:00:35.764Z","dependency_job_id":null,"html_url":"https://github.com/jordan-wright/purl","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/jordan-wright%2Fpurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan-wright%2Fpurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan-wright%2Fpurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan-wright%2Fpurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordan-wright","download_url":"https://codeload.github.com/jordan-wright/purl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345961,"owners_count":21088380,"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-10-13T12:24:42.241Z","updated_at":"2025-04-11T05:20:26.094Z","avatar_url":"https://github.com/jordan-wright.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purl\n\nA command-line URL parser.\n\n### Usage\n\n`purl` reads URLs from stdin, parses them according to the provided flags, and prints the result to stdout.\n\n```\nusage: purl [\u003cflags\u003e]\n\nFlags:\n  --help                 Show context-sensitive help (also try --help-long and --help-man).\n  --scheme               Print the URL scheme\n  --opaque               Print the opaque URL part\n  --user                 Print the user and password information\n  --host                 Print the URL hostname\n  --path                 Print the URL path\n  --query                Print the URL query\n  --fragment             Print the URL fragment\n  --separator=SEPARATOR  Separate results by a delimeter\n```\n\n### Examples\n\nPrint the hostname\n\n```\n$ echo \"https://google.com/test\" | purl --host\ngoogle.com\n```\n\nPrint the scheme and hostname\n\n```\n$ echo \"https://google.com/test/?q=test\" | purl --scheme --host\nhttps://google.com\n```\n\nPrint the hostname and path\n\n```\n$ echo \"https://google.com/test/?q=test\" | purl --host --path\ngoogle.com/test/\n```\n\nPrint the user:password information:\n\n```\n$ echo \"https://jordan-wright:password@google.com/test\" | purl --user\njordan-wright:password\n```\n\nUse a comma separator:\n\n```\n$ echo \"https://jordan-wright:password@google.com/test\" | purl --user --host --path --separator ,\njordan-wright:password,google.com,/test\n```\n\n### Build From Source\n\nTo build from source, simply `go get` the package:\n\n```\ngo get github.com/jordan-wright/purl\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordan-wright%2Fpurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordan-wright%2Fpurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordan-wright%2Fpurl/lists"}