mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 12:20:50 +01:00
| .. | ||
| test | ||
| .npmignore | ||
| .travis.yml | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
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

