1.0.2 • Published 4 years ago

is-git-remote v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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