Package detail

vcsurl

jprichardson48.5k0.1.1

Convert VCS repository URLs like Github or Bitbucket to their http equivalents.

url, github, bitbucket

readme

Node.js - vcsurl

Convert VCS repository URLs like Github or Bitbucket to their http equivalents.

Why?

Some of my apps take an input a Github repo URL; I wanted to easily get the http url to investigate the project. This will be used in npm-research.

Installation

npm install vcsurl

Example

var vcsurl = require('vcsurl');

console.log(vcsurl('git@github.com:jprichardson/string.js.git')); //'https://github.com/jprichardson/string.js'

See tests for more details

License

(MIT License)

Copyright 2012, JP Richardson jprichardson@gmail.com

changelog

0.1.1 / 2013-01-22

  • Updated tests.

0.1.0 / 2012-11-21

  • Removed string.js dependency.

0.0.1 / 2012-10-11

  • Initial release.