Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

github-url-from-username-repo

1.0.2 • Public • Published

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
 

Install

npm i github-url-from-username-repo

DownloadsWeekly Downloads

46,522

Version

1.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • avatar
  • avatar
  • avatar