{"id":19374794,"url":"https://github.com/malwarebo/slice","last_synced_at":"2026-05-29T16:31:39.498Z","repository":{"id":185758730,"uuid":"673799699","full_name":"malwarebo/slice","owner":"malwarebo","description":"C++ header only URL parser","archived":false,"fork":false,"pushed_at":"2023-09-21T16:48:56.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T15:33:29.733Z","etag":null,"topics":["cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","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/malwarebo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-02T12:58:36.000Z","updated_at":"2023-08-03T03:42:14.000Z","dependencies_parsed_at":"2024-01-26T16:55:37.561Z","dependency_job_id":"d5e53193-e97b-43ed-bcd7-0408211ae21a","html_url":"https://github.com/malwarebo/slice","commit_stats":null,"previous_names":["malwarebo/slice","kbww/slice"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/malwarebo/slice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarebo%2Fslice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarebo%2Fslice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarebo%2Fslice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarebo%2Fslice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malwarebo","download_url":"https://codeload.github.com/malwarebo/slice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarebo%2Fslice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp"],"created_at":"2024-11-10T08:36:09.177Z","updated_at":"2026-05-29T16:31:39.480Z","avatar_url":"https://github.com/malwarebo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slice - URL Parser (C++ Header-Only) Library\n\nSlice is a simple header-only C++ library that allows you to parse URLs and extract their components (scheme, host, path, query, and fragment) using regular expressions.\n\n## Usage\n\nTo use the URL Parser in your C++ project, follow these steps:\n\n1. Download the `url_parser.h` header file from this repository.\n2. Copy the `url_parser.h` file into your project directory or include it in your project's `include` folder.\n\n## Build\n\nThe URL Parser is a header-only library and does not require a separate build process. You can include the `url_parser.h` file directly in your C++ source files, and the parser will be available for use.\n\n## Example\n\nBelow is a simple example usage:\n\n```cpp\n#include \u003ciostream\u003e\n#include \"url_parser.h\"\n\nint main() {\n    std::string url = \"https://www.example.com/page?param1=value1\u0026param2=value2#section\";\n\n    URLParser::ParsedURL parsedUrl = URLParser::parse(url);\n\n    std::cout \u003c\u003c \"Scheme: \" \u003c\u003c parsedUrl.scheme \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Host: \" \u003c\u003c parsedUrl.host \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Path: \" \u003c\u003c parsedUrl.path \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Fragment: \" \u003c\u003c parsedUrl.fragment \u003c\u003c std::endl;\n\n    std::cout \u003c\u003c \"Query Parameters:\" \u003c\u003c std::endl;\n    for (const auto\u0026 entry : parsedUrl.query) {\n        std::cout \u003c\u003c entry.first \u003c\u003c \" = \" \u003c\u003c entry.second \u003c\u003c std::endl;\n    }\n\n    return 0;\n}\n```\n\nReplace the url variable with any URL you want to parse. The URLParser class will extract its components and provide them in the ParsedURL struct for further use in your application.\n\n## Contributing\n\nContributions to this project are welcome! If you find any issues or have any improvements, please feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalwarebo%2Fslice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalwarebo%2Fslice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalwarebo%2Fslice/lists"}