dominictarr / Github Url
Licence: mit
Stars: ✭ 13
Programming Languages
javascript
184084 projects - #8 most used programming language
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].