{"id":15536515,"url":"https://github.com/turbo87/hosted-git-info-rs","last_synced_at":"2025-04-23T14:42:08.271Z","repository":{"id":46244911,"uuid":"393807978","full_name":"Turbo87/hosted-git-info-rs","owner":"Turbo87","description":"Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab","archived":false,"fork":false,"pushed_at":"2021-11-04T14:07:24.000Z","size":537,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T17:48:11.981Z","etag":null,"topics":["bitbucket","git","github","gitlab"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/hosted-git-info","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turbo87.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Turbo87","custom":"https://paypal.me/tobiasbieniek"}},"created_at":"2021-08-07T22:45:35.000Z","updated_at":"2021-12-31T11:56:01.000Z","dependencies_parsed_at":"2022-09-12T15:43:42.933Z","dependency_job_id":null,"html_url":"https://github.com/Turbo87/hosted-git-info-rs","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/Turbo87%2Fhosted-git-info-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fhosted-git-info-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fhosted-git-info-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fhosted-git-info-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turbo87","download_url":"https://codeload.github.com/Turbo87/hosted-git-info-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250455442,"owners_count":21433512,"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":["bitbucket","git","github","gitlab"],"created_at":"2024-10-02T11:52:18.408Z","updated_at":"2025-04-23T14:42:08.245Z","avatar_url":"https://github.com/Turbo87.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Turbo87","https://paypal.me/tobiasbieniek"],"categories":[],"sub_categories":[],"readme":"hosted-git-info\n==============================================================================\n\nProvides metadata and conversions from repository urls for [GitHub], [Bitbucket]\nand [GitLab].\n\n[GitHub]: https://github.com/\n[Bitbucket]: https://www.bitbucket.org/\n[GitLab]: https://www.gitlab.com/\n\n__This is a [Rust] port of the original [hosted-git-info] project on [npm].__\n\n[Rust]: https://www.rustlang.org/\n[hosted-git-info]: https://github.com/npm/hosted-git-info\n[npm]: https://www.npmjs.com\n\n\u003e This will let you identify and transform various git hosts URLs between\n\u003e protocols.  It also can tell you what the URL is for the raw path for\n\u003e particular file for direct access without git.\n\n\nUsage\n------------------------------------------------------------------------------\n\n```rust\nuse hosted_git_info::HostedGitInfo;\n\nfn main() {\n    let url = \"https://github.com/foo/bar.git#branch\";\n    let info = HostedGitInfo::from_url(url).unwrap();\n    assert_eq!(info.provider, Provider::GitHub);\n    assert_eq!(info.user, Some(\"foo\"));\n    assert_eq!(info.project, \"bar\");\n    assert_eq!(info.committish, Some(\"branch\"));\n}\n```\n\n\nMSRV\n------------------------------------------------------------------------------\n\nThe \"Minimum Supported Rust Version\" of this project is: v1.46.0\n\n\nRelated\n------------------------------------------------------------------------------\n\n- [hosted-git-info] – The original library for JavaScript\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the ISC license ([LICENSE](LICENSE) or\n\u003chttp://opensource.org/licenses/ISC\u003e).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fhosted-git-info-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbo87%2Fhosted-git-info-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fhosted-git-info-rs/lists"}