1.0.2 • Published 10 years ago

github-url-from-username-repo v1.0.2

Weekly downloads
37,081
License
BSD-2-Clause
Repository
github
Last release
10 years ago

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