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.

22 lines
677 B

11 years ago
[![Build Status](https://travis-ci.org/robertkowalski/github-url-from-username-repo.png?branch=master)](https://travis-ci.org/robertkowalski/github-url-from-username-repo)
[![Dependency Status](https://gemnasium.com/robertkowalski/github-url-from-username-repo.png)](https://gemnasium.com/robertkowalski/github-url-from-username-repo)
# 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.
11 years ago
## Usage
```javascript
var getUrl = require("github-url-from-username-repo")
getUrl("visionmedia/express") // https://github.com/visionmedia/express
11 years ago
```