Socket
Socket
Sign inDemoInstall

remote-origin-url

Package Overview
Dependencies
Maintainers
2
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!


Version published
Weekly downloads
146K
decreased by-3.85%
Maintainers
2
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 11 Jul 2017

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