git-remote-from-url

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i git-remote-from-url

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • tkellen