# is-git-remote

> Check if a git remote repository exists

Latest version **1.0.2** (published 2020-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-git-remote
pnpm add is-git-remote
yarn add is-git-remote
bun add is-git-remote
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-04-03 |
| First published | 2017-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lukas Aichbauer |
| Maintainers | aichbauer |
| Keywords | git, remote, exists, is-git-remote |

## Links

- npm: https://www.npmjs.com/package/is-git-remote
- Repository: https://github.com/aichbauer/node-is-git-remote
- Homepage: https://github.com/aichbauer/node-is-git-remote#readme
- Issues: https://github.com/aichbauer/node-is-git-remote/issues
- npm.io page: https://npm.io/package/is-git-remote

## Dependencies (2)

- [execa](https://npm.io/package/execa.md) ^0.8.0
- [input-is](https://npm.io/package/input-is.md) ^1.1.2

## Recent versions

- 1.0.2 (latest) — 2020-04-03
- 1.0.1 — 2017-09-17

## README

# is-git-remote

> Check if a git remote repository exists

[![Build Status](https://travis-ci.org/aichbauer/node-is-git-remote.svg?branch=master)](https://travis-ci.org/aichbauer/node-is-git-remote)
[![Build status](https://ci.appveyor.com/api/projects/status/eatqdfs3a7uhniti?svg=true)](https://ci.appveyor.com/project/aichbauer/node-is-git-remote)
[![codecov](https://codecov.io/gh/aichbauer/node-is-git-remote/branch/master/graph/badge.svg)](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

---
_Source: https://npm.io/package/is-git-remote · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
