Skip to content

resolves API, HTML and RAW Urls for GitHub repositories

License

Notifications You must be signed in to change notification settings

v-braun/gh-urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VBR.GitHubUrls

resolves API, HTML and RAW Urls for GitHub repositories

By v-braun - www.dev-things.net.

AppVeyor NuGet

Installation

PowerShell

Install-Package VBR.GitHubUrls

project.json

  "dependencies": {
    "VBR.GitHubUrls": "*"
  }

Usage

See the VBR.GitHubUrls.Tests Project.

using VBR.GitHubUrls;

static Main(){

    GitHubUrls urls;
    urls = GitHubUrls.FromHtmlUrl("https://github.com/dotnet/core/");
    // or:
    urls = GitHubUrls.FromUserRepoString("dotnet/core/");
    // or:
    urls = GitHubUrls.FromUserNameAndRepo("dotnet", "core");

    // urls:
    // UserName = dotnet,
    // RepositoryName = core,
    // ApiUrl = $"https://api.github.com/repos/dotnet/core/",
    // HtmlUrl = $"https://github.com/dotnet/core/",
    // RawUrl = $"https://raw.githubusercontent.com/dotnet/core/",
    // UserRepo = $"dotnet/core"
    
}

Known Issues

If you discover any bugs, feel free to create an issue on GitHub fork and send me a pull request.

Issues List.

Authors

image
v-braun

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

See LICENSE.

About

resolves API, HTML and RAW Urls for GitHub repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages