All Projects → jonschlinkert → remote-origin-url

jonschlinkert / remote-origin-url

Licence: MIT license
Extract the git remote origin URL from your local git repository.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to remote-origin-url

git-repo-name
Get the repository name from the git remote origin URL
Stars: ✭ 21 (+40%)
Mutual labels:  url, remote, origin
Gdrivedownloader
Just enter the direct URL of the file and it will upload it to Google Drive and print download link of it.
Stars: ✭ 60 (+300%)
Mutual labels:  url, remote
dotfiles
/home/yous
Stars: ✭ 43 (+186.67%)
Mutual labels:  config, gitconfig
URL-Magnet-Cloud-Uploader-Heroku
Aria 2 Rclone Remote URL /magnet Clouds upload via HEROKU
Stars: ✭ 99 (+560%)
Mutual labels:  url, remote
Vscode Remote Workspace
Multi protocol support for handling remote files like local ones in Visual Studio Code.
Stars: ✭ 197 (+1213.33%)
Mutual labels:  url, remote
eRCaGuy dotfiles
.bashrc file, terminal prompt that shows current git branch, Arduino setup, Eclipse setup, git diff with line numbers, helpful scripts, improved Linux productivity, etc.
Stars: ✭ 84 (+460%)
Mutual labels:  config, gitconfig
goconfig
.gitconfig syntax parser
Stars: ✭ 15 (+0%)
Mutual labels:  config, gitconfig
Remco
remco is a lightweight configuration management tool
Stars: ✭ 200 (+1233.33%)
Mutual labels:  config, remote
parse-git-config
Parse `.git/config` into a JavaScript object. sync or async.
Stars: ✭ 55 (+266.67%)
Mutual labels:  config, gitconfig
MSI-Modern15-Hackintosh
My MSI Modern 15 Hackintosh repo
Stars: ✭ 16 (+6.67%)
Mutual labels:  config
Omeka-plugin-CleanUrl
Omeka plugin that allows to have clean, searchable and readable URL like https://example.com/my_collection/dc:identifier instead of https://example.com/items/show/internal_code.
Stars: ✭ 13 (-13.33%)
Mutual labels:  url
Odyssey
A piece of software that shows a traceroute of a URL redirect path
Stars: ✭ 41 (+173.33%)
Mutual labels:  url
es-cec-input
TV CEC remote control support for Emulation Station (ES in RetroPie)
Stars: ✭ 47 (+213.33%)
Mutual labels:  remote
android-sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 39 (+160%)
Mutual labels:  remote
Backdoor
A backdoor that runs on Linux and Windows
Stars: ✭ 36 (+140%)
Mutual labels:  remote
exenv
Exenv makes loading environment variables from external sources easy.
Stars: ✭ 35 (+133.33%)
Mutual labels:  config
dotfiles
💻 Dotfiles repository for my macOS setup.
Stars: ✭ 12 (-20%)
Mutual labels:  gitconfig
MatrixChecks
The optimized checks for Matrix Anticheat, a powerful anticheat for Minecraft.
Stars: ✭ 70 (+366.67%)
Mutual labels:  config
All-Url-Uploader
A simple telegram Bot, Upload Media File| video To telegram using the direct download link. (youtube, Mediafire, google drive, mega drive, etc)
Stars: ✭ 122 (+713.33%)
Mutual labels:  url
origin-website
The code powering our website
Stars: ✭ 36 (+140%)
Mutual labels:  origin

remote-origin-url NPM version NPM monthly downloads NPM total downloads Linux Build Status

Get the git remote origin URL from your local git repository. Remember! A remote origin must exist first!

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

Install

Install with npm:

$ npm install --save remote-origin-url

Usage

const origin = require('remote-origin-url');

async/await

(async() => {
  let url = await origin();
  console.log(url);
  // url => "https://github.com/jonschlinkert/remote-origin-url.git"
})();

Callback

origin((err, url) => {
  if (err) return console.log(err);
  console.log(url);
  // url => "https://github.com/jonschlinkert/remote-origin-url.git"
});

cwd

Specify the current working directory to use:

origin(process.cwd(), (err, url) => {
  if (err) return console.log(err);
  console.log(url);
  // url => "https://github.com/jonschlinkert/remote-origin-url.git"
});

sync

console.log(origin.sync());
//=> "https://github.com/jonschlinkert/remote-origin-url.git"

Specify the cwd to use:

console.log(origin.sync(process.cwd()));
//=> "https://github.com/jonschlinkert/remote-origin-url.git"

Release history

v2.0.0

Now returns a promise if a callback is not supplied.

v1.0.0

No significant changes, just minor code formatting. it's time for a 1.0 release!

v0.5.3

bug fixes

Pass an object to parse-git-config to ensure that path is used.

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Running Tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Related projects

You might also be interested in these projects:

Contributors

Commits Contributor
34 jonschlinkert
3 doowb

Author

Jon Schlinkert

License

Copyright © 2018, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.8.0, on November 22, 2018.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].