# git-list-remotes

> List the remotes of a git repository

Latest version **1.0.2** (published 2015-11-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install git-list-remotes
pnpm add git-list-remotes
yarn add git-list-remotes
bun add git-list-remotes
```

## 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 | 2015-11-29 |
| First published | 2015-11-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.12 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marco Castelluccio |
| Maintainers | marco-c |
| Keywords | git |

## Links

- npm: https://www.npmjs.com/package/git-list-remotes
- Repository: https://github.com/marco-c/git-list-remotes/
- npm.io page: https://npm.io/package/git-list-remotes

## Dependencies (1)

- [gitconfiglocal](https://npm.io/package/gitconfiglocal.md) ^1.0.0

## Recent versions

- 1.0.2 (latest) — 2015-11-29
- 1.0.1 — 2015-11-19
- 1.0.0 — 2015-11-14
- 0.0.1 — 2015-11-13

## README

# git-list-remotes
List the remotes of a git repository

[![Build Status](https://travis-ci.org/marco-c/git-list-remotes.svg?branch=master)](https://travis-ci.org/marco-c/git-list-remotes)
[![dependencies](https://david-dm.org/marco-c/git-list-remotes.svg)](https://david-dm.org/marco-c/git-list-remotes)
[![devdependencies](https://david-dm.org/marco-c/git-list-remotes/dev-status.svg)](https://david-dm.org/marco-c/git-list-remotes#info=devDependencies)


# API

The function exported by the module accepts one parameter:
- `directory`: the directory of the git repository.

It returns a promise that resolves to an array containing the names of the remotes of the git repository.


# Example

```JavaScript
var gitListRemotes = require('git-list-remotes');

gitListRemotes('.').then(function(remotes) {
  console.log('Found ' + remotes.length + ' remotes');
  console.log('The remotes are: ' + remotes.join(', '));
});
```

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