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: 25 days 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-24T16:22:45.000Z (over 8 years ago)
- Last Synced: 2025-10-27T06:26:28.280Z (7 months ago)
- Topics: git, is-git, nodejs, remote, urls
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# get-git-remotes
[](https://travis-ci.org/aichbauer/node-get-git-remotes)
[](https://ci.appveyor.com/project/rudolfsonjunior/node-get-git-remotes)
[](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