is-git-remote
v1.0.2
Published
Check if a git remote repository exists
Downloads
6
Maintainers
Readme
is-git-remote
Check if a git remote repository exists
Installation
$ npm i is-git-remote --save
or
$ yarn add is-git-remote
Usage
const isGitRemote = require('is-git-remote'); // import isGitRemote from 'is-git-remote'
isGitRemote('www.github.com/username/repo-that-exists'); // => true
isGitRemote('https://www.github.com/username/repo-that-exists'); // => true
isGitRemote('username/repo-that-exists', 'bitbucket.com'); // => true
// automatically checks github if no host is provided
isGitRemote('username/repo-that-not-exists'); // => false
LICENSE
MIT © Lukas Aichbauer