0.1.0 • Published 10 years ago

git-remote-from-url v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

git-remote-from-url Build Status

Find the git remote in a git url.

NPM

Example

const gitRemoteFromUrl = require('git-remote-from-url');

gitRemoteFromUrl('git://github.com/user/project.git'); // // git@github.com:user/project.git
gitRemoteFromUrl('git+ssh://git@github.com:project.git')) // git@github.com:project.git
gitRemoteFromUrl('git+ssh://git@github.com/project.git')) // git@github.com:project.git
gitRemoteFromUrl('git+http://git@github.com/project/blah.git')) // git@github.com:project/blah.git
gitRemoteFromUrl('git+https://git@github.com/project/blah.git')) // git@github.com:project/blah.git

Release History

  • 2014-05-29 - v0.1.0 - initial release