{"id":13633412,"url":"https://github.com/tomnomnom/qsreplace","last_synced_at":"2025-05-16T15:08:57.154Z","repository":{"id":38983908,"uuid":"215253770","full_name":"tomnomnom/qsreplace","owner":"tomnomnom","description":"Accept URLs on stdin, replace all query string values with a user-supplied value","archived":false,"fork":false,"pushed_at":"2022-11-23T15:42:28.000Z","size":4,"stargazers_count":806,"open_issues_count":15,"forks_count":124,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-12T14:17:09.741Z","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/tomnomnom.png","metadata":{"files":{"readme":"README.mkd","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":"2019-10-15T09:01:58.000Z","updated_at":"2025-04-11T06:35:09.000Z","dependencies_parsed_at":"2022-07-14T03:30:42.032Z","dependency_job_id":null,"html_url":"https://github.com/tomnomnom/qsreplace","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/tomnomnom%2Fqsreplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Fqsreplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Fqsreplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Fqsreplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomnomnom","download_url":"https://codeload.github.com/tomnomnom/qsreplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553958,"owners_count":22090417,"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-01T23:00:38.717Z","updated_at":"2025-05-16T15:08:52.138Z","avatar_url":"https://github.com/tomnomnom.png","language":"Go","readme":"# qsreplace\n\nAccept URLs on stdin, replace all query string values with a user-supplied value, only output\neach combination of query string parameters once per host and path.\n\n## Usage\n\nExample input file:\n```\n▶ cat urls.txt \nhttps://example.com/path?one=1\u0026two=2\nhttps://example.com/path?two=2\u0026one=1\nhttps://example.com/pathtwo?two=2\u0026one=1\nhttps://example.net/a/path?two=2\u0026one=1\n```\n\n### Replace Query String Values\n\n```\n▶ cat urls.txt | qsreplace newval\nhttps://example.com/path?one=newval\u0026two=newval\nhttps://example.com/pathtwo?one=newval\u0026two=newval\nhttps://example.net/a/path?one=newval\u0026two=newval\n```\n\n### Append to Query String Values\n\n```\n▶ cat urls.txt | qsreplace -a newval\nhttps://example.com/path?one=1newval\u0026two=2newval\nhttps://example.com/pathtwo?one=1newval\u0026two=2newval\nhttps://example.net/a/path?one=1newval\u0026two=2newval\n```\n\n### Remove Duplicate URL and Parameter Combinations\n\nYou can omit the argument to `-a` to only output each combination of URL and query string parameters once:\n```\n▶ cat urls.txt | qsreplace -a \nhttps://example.com/path?one=1\u0026two=2\nhttps://example.com/pathtwo?one=1\u0026two=2\nhttps://example.net/a/path?one=1\u0026two=2\n```\n\n## Install\n\nWith Go:\n\n```\n▶ go install github.com/tomnomnom/qsreplace@latest\n```\n\nOr [download a release](https://github.com/tomnomnom/qsreplace/releases) and put it somewhere in your `$PATH`\n(e.g. in /usr/local/bin).\n","funding_links":[],"categories":["Miscellaneous","Weapons","Shell (473)","Shell","Web安全","Go"],"sub_categories":["Useful","Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomnomnom%2Fqsreplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomnomnom%2Fqsreplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomnomnom%2Fqsreplace/lists"}