+5
-0
| 0.0.3 / 2014-04-24 | ||
| ================== | ||
| * support parse github tarballs url. close #2 | ||
| 0.0.2 / 2014-02-27 | ||
@@ -3,0 +8,0 @@ ================== |
+4
-1
@@ -44,3 +44,6 @@ /**! | ||
| var protocol = HTTPS_HOSTS[host] ? 'https' : 'http'; | ||
| return protocol + '://' + host + '/' + item[2]; | ||
| // p1/p2/.../pn[.xxx] | ||
| var url = item[2].split('/', 2).join('/'); | ||
| return protocol + '://' + host + '/' + url; | ||
| }; |
+10
-9
| { | ||
| "name": "giturl", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "Transfer git url to web url", | ||
@@ -22,19 +22,20 @@ "main": "index.js", | ||
| "autod": "*", | ||
| "blanket": "*", | ||
| "contributors": "*", | ||
| "should": "*", | ||
| "blanket": "*", | ||
| "travis-cov": "*", | ||
| "cov": "*", | ||
| "coveralls": "*", | ||
| "jshint": "*", | ||
| "mocha": "*", | ||
| "mocha-lcov-reporter": "*", | ||
| "mocha": "*" | ||
| "should": "3.3.1", | ||
| "travis-cov": "*" | ||
| }, | ||
| "homepage": "https://github.com/fengmk2/giturl", | ||
| "homepage": "https://github.com/repo-utils/giturl", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git://github.com/fengmk2/giturl.git", | ||
| "web": "https://github.com/fengmk2/giturl" | ||
| "url": "git://github.com/repo-utils/giturl.git", | ||
| "web": "https://github.com/repo-utils/giturl" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/fengmk2/giturl/issues", | ||
| "url": "https://github.com/repo-utils/giturl/issues", | ||
| "email": "fengmk2@gmail.com" | ||
@@ -41,0 +42,0 @@ }, |
+9
-2
| giturl | ||
| ======= | ||
| [](http://travis-ci.org/fengmk2/giturl) [](https://coveralls.io/r/fengmk2/giturl) [](https://gemnasium.com/fengmk2/giturl) | ||
| [](http://travis-ci.org/repo-utils/giturl) | ||
| [](https://coveralls.io/r/repo-utils/giturl) | ||
| [](https://gemnasium.com/repo-utils/giturl) | ||
| [](https://nodei.co/npm/giturl/) | ||
|  | ||
|  | ||
@@ -43,2 +47,5 @@ Transfer git url to web url. | ||
| // => http://gitcafe.com/fengmk2/cnpm | ||
| giturl.parse('http://github.com/component/emitter/archive/1.0.1.tar.gz') | ||
| // => https://github.com/component/emitter | ||
| ``` | ||
@@ -45,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
6286
5.66%40
5.26%76
10.14%10
11.11%