Socket
Socket
Sign inDemoInstall

git-repo-url

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-repo-url

create github https or git-ssh url from username and repo


Version published
Maintainers
1
Created
Source

git-repo-url NPM version Build Status Dependency Status

create github https or git-ssh url from username and repo

Install

$ npm install --save git-repo-url

Usage

JavaScript

var https = require('git-repo-url').https;

https('yashprit', 'generator-bode'); 

//=> https://github.com/yashprit/generator-bode.git

command line

$ npm install --global git-repo-url
$ git-repo-url --t ssh --u yashprit --r generator-bode

#result => git@github.com:yashprit/generator-bode.git

Methods

var gitRepoUrl = require('git-repo-url');

ssh([username], [reponame])

get ssh url from username and reponame

https([username], [reponame])

get https url from username and reponame

Run Test

npm test

Contribute or Report Issue

For bugs and feature requests, please create an issue.

License

MIT © Yashprit

Keywords

FAQs

Package last updated on 03 Apr 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