Checks if string is a git repository
MIT License
Checks if string is a git repository
$ yarn add is-github-repo
const isGithubRepo = require('is-github-repo')
/* with HTTPS */
isGithubRepo('https://github.com/bukinoshita/is-github-repo.git')
// => true
/* with SSH */
isGithubRepo('[email protected]:bukinoshita/is-github-repo.git')
// => true
/* with owner/repo */
isGithubRepo('bukinoshita/is-github-repo')
// => true
returns a boolean
.
Type: string
Required
MIT © Bu Kinoshita