https://github.com/aichbauer/node-is-git-remote
Check if a git remote repository exists
https://github.com/aichbauer/node-is-git-remote
check git is-git nodejs remote
Last synced: about 2 months ago
JSON representation
Check if a git remote repository exists
- Host: GitHub
- URL: https://github.com/aichbauer/node-is-git-remote
- Owner: aichbauer
- License: mit
- Created: 2017-09-17T21:31:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T22:06:18.000Z (over 3 years ago)
- Last Synced: 2025-03-04T20:40:52.414Z (about 1 year ago)
- Topics: check, git, is-git, nodejs, remote
- Language: JavaScript
- Size: 1.38 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# is-git-remote
> Check if a git remote repository exists
[](https://travis-ci.org/aichbauer/node-is-git-remote)
[](https://ci.appveyor.com/project/aichbauer/node-is-git-remote)
[](https://codecov.io/gh/aichbauer/node-is-git-remote)
## Installation
```sh
$ npm i is-git-remote --save
```
or
```sh
$ yarn add is-git-remote
```
## Usage
```js
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