Parse a GitHub URL for user/project@version
Parse all the stupid ways you could write a GitHub URL in your damn package.json.
Supports:
<user>/<repo#<commit>git://and.gitw/#commitor@versiongit@andhttps:git@www.github.comgitlab.<my company name>.com/user/repo.gitparsing- All 5 different ways you could download a freaking tarball/zipball
version could be falsey, a semantic version, a commit, or a branch, etc.
var parse = require('parse-github-repo-url')
parse('component/emitter#1') // => ['component', 'emitter', '1']See the tests for all the different types of supported URLs.