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

remote-origin-url

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-origin-url

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

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
190K
increased by34.96%
Maintainers
1
Weekly downloads
 
Created

What is remote-origin-url?

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

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

Get Remote Origin URL

This feature allows you to retrieve the remote origin URL of the current Git repository. The code sample demonstrates how to use the package to get the URL and handle any potential errors.

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

remoteOriginUrl().then(url => {
  console.log(url); // prints the remote origin URL
}).catch(err => {
  console.error(err);
});

Other packages similar to remote-origin-url

Keywords

FAQs

Package last updated on 27 Feb 2015

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