git-remote-protocol
v0.1.0
Published
Convert an HTTPS Git remote URL to SSH and the opposite
Downloads
13
Readme
git-remote-protocol
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')
// [email protected]:torvalds/linux.git
gitRemote.toHTTPS('[email protected]:mirror/linux.git')
// https://bitbucket.org/mirror/linux.git