Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-remote-origin-url

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-remote-origin-url

Get the remote origin URL of a Git repository

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7M
decreased by-21.65%
Maintainers
1
Weekly downloads
 
Created

What is git-remote-origin-url?

The git-remote-origin-url npm package is a utility that allows you to retrieve the URL of the 'origin' remote from a Git repository. This can be useful for various automation tasks, CI/CD pipelines, or any scenario where you need to programmatically access the remote URL of a repository.

What are git-remote-origin-url's main functionalities?

Retrieve the 'origin' remote URL

This feature allows you to retrieve the URL of the 'origin' remote from the current Git repository. The code sample demonstrates how to use the package to get the URL and log it to the console.

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

(async () => {
  try {
    const url = await gitRemoteOriginUrl();
    console.log(url);
  } catch (err) {
    console.error(err);
  }
})();

Other packages similar to git-remote-origin-url

Keywords

FAQs

Package last updated on 10 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc