{"id":13582998,"url":"https://github.com/repo-utils/parse-github-repo-url","last_synced_at":"2025-05-01T17:31:22.358Z","repository":{"id":16316542,"uuid":"19065596","full_name":"repo-utils/parse-github-repo-url","owner":"repo-utils","description":"Parse a GitHub URL for user/project@version","archived":false,"fork":false,"pushed_at":"2018-10-10T11:02:18.000Z","size":12,"stargazers_count":30,"open_issues_count":2,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-05T23:41:25.657Z","etag":null,"topics":["github","parsing","url"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"shadowsocks/kcptun","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/repo-utils.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":"2014-04-23T10:24:57.000Z","updated_at":"2024-07-08T20:46:37.000Z","dependencies_parsed_at":"2022-09-14T10:54:21.153Z","dependency_job_id":null,"html_url":"https://github.com/repo-utils/parse-github-repo-url","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repo-utils%2Fparse-github-repo-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repo-utils%2Fparse-github-repo-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repo-utils%2Fparse-github-repo-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repo-utils%2Fparse-github-repo-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repo-utils","download_url":"https://codeload.github.com/repo-utils/parse-github-repo-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270307,"owners_count":17283649,"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":["github","parsing","url"],"created_at":"2024-08-01T15:03:11.032Z","updated_at":"2024-11-12T12:05:01.062Z","avatar_url":"https://github.com/repo-utils.png","language":"JavaScript","readme":"# parse-github-repo-url\n\n\u003e Parse a GitHub URL for user/project@version\n\n[![Build Status](https://travis-ci.org/repo-utils/parse-github-repo-url.svg?branch=master)](https://travis-ci.org/repo-utils/parse-github-repo-url)\n[![semantic-release][semantic-image] ][semantic-url]\n\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n\n# Features\n\nParse all the stupid ways you could write a GitHub URL in your damn `package.json`.\nSupports:\n\n- `\u003cuser\u003e/\u003crepo#\u003ccommit\u003e`\n- `git://` and `.git` w/ `#commit` or `@version`\n- `git@` and `https:git@`\n- `www.github.com`\n- `gitlab.\u003cmy company name\u003e.com/user/repo.git` parsing\n- All 5 different ways you could download a freaking tarball/zipball\n\n## API\n\n### [user, repo, version] = parse(url)\n\n`version` could be `false`y, a semantic version, a commit, or a branch, etc.\n\n```js\nvar parse = require('parse-github-repo-url')\nparse('component/emitter#1') // =\u003e ['component', 'emitter', '1']\n```\n\nSee the tests for all the different types of supported URLs.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepo-utils%2Fparse-github-repo-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepo-utils%2Fparse-github-repo-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepo-utils%2Fparse-github-repo-url/lists"}