You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Timothy J Fontaine 9fad8958df deps: upgrade npm to 2.0.0 10 years ago
..
test deps: upgrade npm to 2.0.0 10 years ago
.npmignore npm@1.3.12 11 years ago
.travis.yml npm@1.3.12 11 years ago
LICENSE npm@1.3.12 11 years ago
README.md npm: Update to 1.4.28 10 years ago
index.js deps: upgrade npm to 2.0.0 10 years ago
package.json deps: upgrade npm to 2.0.0 10 years ago

README.md

Build Status Dependency Status

github-url-from-username-repo

API

getUrl(url, [forBrowser])

Get's the url normalized for npm. If forBrowser is true, return a GitHub url that is usable in a webbrowser.

Usage


var getUrl = require("github-url-from-username-repo")
getUrl("visionmedia/express") // https://github.com/visionmedia/express