github-url-parse

Parse the github user, repo, branch and other things from a GitHub url.
Install
$ npm install --save github-url-parse
Usage
var gitHubUrlParse = require('github-url-parse');
var github = gitHubUrlParse('https://github.com/stefanbuck/github-url-parse/blob/master/lib/index.js');
console.log('user:' + github.user);
console.log('repo:' + github.repo);
console.log('branch:' + github.branch);
console.log('path:' + github.path);
console.log('type:' + github.type);
License
Copyright (c) 2014 Stefan Buck. Licensed under the MIT license.