git-remote-protocol

0.1.0 • Public • Published

git-remote-protocol npm version Build status Coverage status

Convert an HTTPS Git remote URL to SSH and the opposite.

Installation

npm install git-remote-protocol

Usage

const gitRemote = require('git-remote-protocol');
 
gitRemote.toSSH('https://github.com/torvalds/linux.git')
// git@github.com:torvalds/linux.git
gitRemote.toHTTPS('git@bitbucket.org:mirror/linux.git')
// https://bitbucket.org/mirror/linux.git

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i git-remote-protocol

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • alefteris