is-git-remote

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i is-git-remote

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.32 kB

Total Files

6

Last publish

Collaborators

  • aichbauer