juliangruber / ghub.io

http://ghub.io/<package-name> redirects to a npm package's GitHub page, if available.
http://ghub.io
54 stars 12 forks source link

Parse the repo URL with npm's own code #25

Closed fregante closed 6 years ago

fregante commented 7 years ago

https://github.com/npm/hosted-git-info

It supports a loooooot of formats: https://github.com/npm/hosted-git-info/tree/master/test (1100 tests)

strugee commented 7 years ago

ghub.io currently does the wrong thing when trying to find a package with repository specified with a shortcut like github-org/repo; this would resolve that problem.