gitresolve
v2.0.0
Published
Resolve shorthand repository names (github, bitbucket) into their full URLs
Downloads
6
Maintainers
Readme
gitresolve
Resolve shorthand repository names (github, bitbucket) into their full URLs
Install
$ npm install --save gitresolve
Usage
var gitresolve = require('gitresolve');
gitresolve('jmversteeg/gitresolve').then(console.log);
//=> [ { service: 'GitHub',
// url: 'https://github.com/jmversteeg/gitresolve.git',
// name: 'gitresolve' } ]
API
gitresolve(shorthand, [servicesMask])
shorthand
Type: string
Shorthand repository name.
Example: jmversteeg/gitresolve
servicesMask
Type: string[]
Array of resolvers to use (by function name). If not provided, all resolvers will be tried. See lib/services for the available services.
Example: ['github', 'bitbucket']
License
MIT © JM Versteeg