Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aichbauer/node-get-git-remotes
Get the remote URLs of a git repository
https://github.com/aichbauer/node-get-git-remotes
git is-git nodejs remote urls
Last synced: about 1 month ago
JSON representation
Get the remote URLs of a git repository
- Host: GitHub
- URL: https://github.com/aichbauer/node-get-git-remotes
- Owner: aichbauer
- License: mit
- Created: 2017-06-22T18:33:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-24T16:22:45.000Z (about 7 years ago)
- Last Synced: 2024-11-10T17:04:13.093Z (about 1 month ago)
- Topics: git, is-git, nodejs, remote, urls
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# get-git-remotes
[![Build Status](https://travis-ci.org/aichbauer/node-get-git-remotes.svg?branch=master)](https://travis-ci.org/aichbauer/node-get-git-remotes)
[![Build status](https://ci.appveyor.com/api/projects/status/2o2y7b7l6qpjl4es?svg=true)](https://ci.appveyor.com/project/rudolfsonjunior/node-get-git-remotes)
[![Coverage Status](https://coveralls.io/repos/github/aichbauer/node-get-git-remotes/badge.svg?branch=master)](https://coveralls.io/github/aichbauer/node-get-git-remotes?branch=master)> Get the remote URLs of a git repository
## Installation
```sh
$ npm i get-git-remotes --save
```
or
```sh
$ yarn add get-git-remotes
```## Usage
Returns a string of all remote URLs
```js
const getGitRemotes = require('get-git-remotes');// the remote URLs of process.cwd();
getGitRemotes();// the remote URLs of 'my/repo'
getGitRemotes('my/repo');
```## LICENSE
MIT © Lukas Aichbauer