git-remote-from-url
v0.1.0
Published
Find the git remote in a git url.
Downloads
5
Readme
git-remote-from-url
Find the git remote in a git url.
Example
const gitRemoteFromUrl = require('git-remote-from-url');
gitRemoteFromUrl('git://github.com/user/project.git'); // // [email protected]:user/project.git
gitRemoteFromUrl('git+ssh://[email protected]:project.git')) // [email protected]:project.git
gitRemoteFromUrl('git+ssh://[email protected]/project.git')) // [email protected]:project.git
gitRemoteFromUrl('git+http://[email protected]/project/blah.git')) // [email protected]:project/blah.git
gitRemoteFromUrl('git+https://[email protected]/project/blah.git')) // [email protected]:project/blah.git
Release History
- 2014-05-29 - v0.1.0 - initial release