is-git-remote

v1.0.2
Check if a git remote repository exists
git remote exists is-git-remote

is-git-remote

Check if a git remote repository exists

Build Status Build status codecov

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

npm i is-git-remote

Metadata

  • MIT
  • Whatever
  • Lukas Aichbauer
  • released 4/3/2020

Downloads

Maintainers