# parse-github-repo-url **Repository Path**: mirrors_stevemao/parse-github-repo-url ## Basic Information - **Project Name**: parse-github-repo-url - **Description**: Parse a GitHub URL for user/project@version - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # parse-github-repo-url > Parse a GitHub URL for user/project@version [![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) # Features Parse all the stupid ways you could write a GitHub URL in your damn `package.json`. Supports: - `/` - `git://` and `.git` w/ `#commit` or `@version` - `git@` and `https:git@` - `www.github.com` - `gitlab..com/user/repo.git` parsing - All 5 different ways you could download a freaking tarball/zipball ## API ### [user, repo, version] = parse(url) `version` could be `false`y, a semantic version, a commit, or a branch, etc. ```js var parse = require('@bahmutov/parse-github-repo-url') parse('component/emitter#1') // => ['component', 'emitter', '1'] ``` See the tests for all the different types of supported URLs.