is-github-repo
v1.0.0
Published
Checks if string is a git repository
Downloads
7
Maintainers
Readme
is-github-repo
Checks if string is a git repository
Install
$ yarn add is-github-repo
Usage
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
API
isGithubRepo(repo)
returns a boolean
.
repo
Type: string
Required
Related
- git-synced — 🎐 Keep a fork up to date
- del-git-index — Safely delete index.lock of the current project
- repo-exist — Checks if GitHub repository exist
- gopn — Open GitHub repositories
- is-github-rify — Uglify git url
- git-url-prettify — Prettify git url
License
MIT © Bu Kinoshita