mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 09:27:09 +00:00
22 lines
677 B
Markdown
22 lines
677 B
Markdown
[](https://travis-ci.org/robertkowalski/github-url-from-username-repo)
|
|
[](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.
|
|
|
|
## Usage
|
|
|
|
```javascript
|
|
|
|
var getUrl = require("github-url-from-username-repo")
|
|
getUrl("visionmedia/express") // https://github.com/visionmedia/express
|
|
|
|
```
|