Negligible Participation Metric

    git-repo-url

    0.1.0 • Public • Published

    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

    Install

    npm i git-repo-url

    DownloadsWeekly Downloads

    6

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • yashprit