No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

github-url

parse the username, repo and protocol from a github clone url.

Example

var parse = require('github-url')

console.log(parse('https://github.com/dominictarr/rumours.git'))

// ==> {user: 'dominictarr', project: 'rumours', protocol: 'https'}

if you want to parse a url from a service other than github, you may pass in the expected host as the second argument to parse. parse(url, "gitlab.com") for example.

License

MIT